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" | |
13 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
14 #include "SkStrokeRec.h" | 13 #include "SkStrokeRec.h" |
15 #include "SkTArray.h" | 14 #include "SkTArray.h" |
16 | 15 |
17 class SkPath; | 16 class SkPath; |
18 class SkDescriptor; | 17 class SkDescriptor; |
19 | 18 |
20 /** | 19 /** |
21 * Represents a contiguous range of GPU path objects, all with a common stroke. | 20 * Represents a contiguous range of GPU path objects, all with a common stroke. |
22 * This object is immutable with the exception that individual paths may be | 21 * 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... |
81 | 80 |
82 mutable SkAutoTUnref<PathGenerator> fPathGenerator; | 81 mutable SkAutoTUnref<PathGenerator> fPathGenerator; |
83 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths; | 82 mutable SkTArray<uint8_t, true /*MEM_COPY*/> fGeneratedPaths; |
84 const int fNumPaths; | 83 const int fNumPaths; |
85 const SkStrokeRec fStroke; | 84 const SkStrokeRec fStroke; |
86 | 85 |
87 typedef GrGpuResource INHERITED; | 86 typedef GrGpuResource INHERITED; |
88 }; | 87 }; |
89 | 88 |
90 #endif | 89 #endif |
OLD | NEW |