OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrPathRange_DEFINED | 8 #ifndef GrPathRange_DEFINED |
9 #define GrPathRange_DEFINED | 9 #define GrPathRange_DEFINED |
10 | 10 |
11 #include "GrGpuResource.h" | 11 #include "GrGpuResource.h" |
| 12 #include "GrResourceCache.h" |
12 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
13 #include "SkStrokeRec.h" | 14 #include "SkStrokeRec.h" |
14 #include "SkTArray.h" | 15 #include "SkTArray.h" |
15 | 16 |
16 class SkPath; | 17 class SkPath; |
17 class SkDescriptor; | 18 class SkDescriptor; |
18 | 19 |
19 /** | 20 /** |
20 * Represents a contiguous range of GPU path objects, all with a common stroke. | 21 * Represents a contiguous range of GPU path objects, all with a common stroke. |
21 * This object is immutable with the exception that individual paths may be | 22 * This object is immutable with the exception that individual paths may be |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 81 |
81 mutable SkAutoTUnref<PathGenerator> fPathGenerator; | 82 mutable SkAutoTUnref<PathGenerator> fPathGenerator; |
82 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths; | 83 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths; |
83 const int fNumPaths; | 84 const int fNumPaths; |
84 const SkStrokeRec fStroke; | 85 const SkStrokeRec fStroke; |
85 | 86 |
86 typedef GrGpuResource INHERITED; | 87 typedef GrGpuResource INHERITED; |
87 }; | 88 }; |
88 | 89 |
89 #endif | 90 #endif |
OLD | NEW |