michael@0: michael@0: /* michael@0: * Copyright 2010 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: michael@0: #ifndef GrPoint_DEFINED michael@0: #define GrPoint_DEFINED michael@0: michael@0: #include "GrTypes.h" michael@0: #include "SkScalar.h" michael@0: #include "SkPoint.h" michael@0: michael@0: #define GrPoint SkPoint michael@0: #define GrVec SkVector michael@0: michael@0: struct GrIPoint16 { michael@0: int16_t fX, fY; michael@0: michael@0: void set(intptr_t x, intptr_t y) { michael@0: fX = GrToS16(x); michael@0: fY = GrToS16(y); michael@0: } michael@0: }; michael@0: michael@0: #endif