OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #ifndef GrPath_DEFINED | 8 #ifndef GrPath_DEFINED |
10 #define GrPath_DEFINED | 9 #define GrPath_DEFINED |
11 | 10 |
12 #include "GrResource.h" | 11 #include "GrResource.h" |
13 #include "GrRect.h" | 12 #include "SkRect.h" |
14 | 13 |
15 class GrPath : public GrResource { | 14 class GrPath : public GrResource { |
16 public: | 15 public: |
17 SK_DECLARE_INST_COUNT(GrPath); | 16 SK_DECLARE_INST_COUNT(GrPath); |
18 | 17 |
19 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {} | 18 GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {} |
20 | 19 |
21 const GrRect& getBounds() const { return fBounds; } | 20 const SkRect& getBounds() const { return fBounds; } |
22 | 21 |
23 protected: | 22 protected: |
24 GrRect fBounds; | 23 SkRect fBounds; |
25 | 24 |
26 private: | 25 private: |
27 typedef GrResource INHERITED; | 26 typedef GrResource INHERITED; |
28 }; | 27 }; |
29 | 28 |
30 #endif | 29 #endif |
OLD | NEW |