epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 2 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2010 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 10 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 11 | #ifndef GrPoint_DEFINED |
| 12 | #define GrPoint_DEFINED |
| 13 | |
| 14 | #include "GrTypes.h" |
| 15 | #include "GrScalar.h" |
reed@google.com | 7744c20 | 2011-05-06 19:26:26 +0000 | [diff] [blame] | 16 | #include "SkPoint.h" |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 17 | |
reed@google.com | 7744c20 | 2011-05-06 19:26:26 +0000 | [diff] [blame] | 18 | #define GrPoint SkPoint |
| 19 | #define GrVec SkVector |
| 20 | |
| 21 | struct GrIPoint16 { |
| 22 | int16_t fX, fY; |
| 23 | |
| 24 | void set(intptr_t x, intptr_t y) { |
| 25 | fX = GrToS16(x); |
| 26 | fY = GrToS16(y); |
| 27 | } |
| 28 | }; |
| 29 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |