| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrPath_DEFINED | 8 #ifndef GrPath_DEFINED |
| 9 #define GrPath_DEFINED | 9 #define GrPath_DEFINED |
| 10 | 10 |
| 11 #include "GrGpuResource.h" | 11 #include "GrGpuResource.h" |
| 12 #include "GrResourceCache.h" | |
| 13 #include "SkPath.h" | 12 #include "SkPath.h" |
| 14 #include "SkRect.h" | 13 #include "SkRect.h" |
| 15 #include "SkStrokeRec.h" | 14 #include "SkStrokeRec.h" |
| 16 | 15 |
| 17 class GrPath : public GrGpuResource { | 16 class GrPath : public GrGpuResource { |
| 18 public: | 17 public: |
| 19 SK_DECLARE_INST_COUNT(GrPath); | 18 SK_DECLARE_INST_COUNT(GrPath); |
| 20 | 19 |
| 21 /** | 20 /** |
| 22 * Initialize to a path with a fixed stroke. Stroke must not be hairline. | 21 * Initialize to a path with a fixed stroke. Stroke must not be hairline. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 42 protected: | 41 protected: |
| 43 SkPath fSkPath; | 42 SkPath fSkPath; |
| 44 SkStrokeRec fStroke; | 43 SkStrokeRec fStroke; |
| 45 SkRect fBounds; | 44 SkRect fBounds; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 typedef GrGpuResource INHERITED; | 47 typedef GrGpuResource INHERITED; |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 #endif | 50 #endif |
| OLD | NEW |