OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrAADistanceFieldPathRenderer_DEFINED | 9 #ifndef GrAADistanceFieldPathRenderer_DEFINED |
10 #define GrAADistanceFieldPathRenderer_DEFINED | 10 #define GrAADistanceFieldPathRenderer_DEFINED |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 GrAtlas* fAtlas; | 76 GrAtlas* fAtlas; |
77 SkAutoTUnref<GrGeometryProcessor> fCachedGeometryProcessor; | 77 SkAutoTUnref<GrGeometryProcessor> fCachedGeometryProcessor; |
78 // current set of flags used to create the cached geometry processor | 78 // current set of flags used to create the cached geometry processor |
79 uint32_t fEffectFlags; | 79 uint32_t fEffectFlags; |
80 GrAtlas::ClientPlotUsage fPlotUsage; | 80 GrAtlas::ClientPlotUsage fPlotUsage; |
81 SkTDynamicHash<PathData, PathData::Key> fPathCache; | 81 SkTDynamicHash<PathData, PathData::Key> fPathCache; |
82 PathDataList fPathList; | 82 PathDataList fPathList; |
83 | 83 |
84 bool internalDrawPath(GrDrawTarget*, GrPipelineBuilder*, GrColor, const SkMa
trix& viewMatrix, | 84 bool internalDrawPath(GrDrawTarget*, GrPipelineBuilder*, GrColor, const SkMa
trix& viewMatrix, |
85 const SkPath& path, const PathData* pathData); | 85 const SkPath& path, const PathData* pathData); |
| 86 inline bool uploadPath(GrPlot** plot, SkIPoint16* atlasLocation, int width,
int height, |
| 87 void* dfStorage); |
86 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool
antiAlias, | 88 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool
antiAlias, |
87 uint32_t dimension, SkScalar scale); | 89 uint32_t dimension, SkScalar scale); |
88 bool freeUnusedPlot(); | 90 bool freeUnusedPlot(); |
89 | 91 |
90 typedef GrPathRenderer INHERITED; | 92 typedef GrPathRenderer INHERITED; |
91 }; | 93 }; |
92 | 94 |
93 #endif | 95 #endif |
OLD | NEW |