| Index: include/gpu/GrPoint.h
|
| diff --git a/include/gpu/GrPoint.h b/include/gpu/GrPoint.h
|
| index 7be5736f563b6fe544ab02222e7927dc40dba0c8..16738f52434f9f4fa2dd05235025b244e040b5c8 100644
|
| --- a/include/gpu/GrPoint.h
|
| +++ b/include/gpu/GrPoint.h
|
| @@ -15,14 +15,18 @@
|
| #include "SkScalar.h"
|
| #include "SkPoint.h"
|
|
|
| -#if 0
|
| -#define GrPoint SkPoint
|
| -#define GrVec SkVector
|
| -#endif
|
| -
|
| struct GrIPoint16 {
|
| int16_t fX, fY;
|
|
|
| + static GrIPoint16 Make(intptr_t x, intptr_t y) {
|
| + GrIPoint16 pt;
|
| + pt.set(x, y);
|
| + return pt;
|
| + }
|
| +
|
| + int16_t x() const { return fX; }
|
| + int16_t y() const { return fY; }
|
| +
|
| void set(intptr_t x, intptr_t y) {
|
| fX = SkToS16(x);
|
| fY = SkToS16(y);
|
|
|