| 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 |
| 11 | 11 |
| 12 #include "GrAllocPool.h" | 12 #include "GrAllocPool.h" |
| 13 #include "GrAtlas.h" | 13 #include "GrAtlas.h" |
| 14 #include "GrPathRenderer.h" | 14 #include "GrPathRenderer.h" |
| 15 #include "GrRect.h" | 15 #include "GrRect.h" |
| 16 | 16 |
| 17 #include "SkChecksum.h" | 17 #include "SkChecksum.h" |
| 18 #include "SkTDynamicHash.h" |
| 18 | 19 |
| 19 class GrContext; | 20 class GrContext; |
| 20 class GrPlot; | 21 class GrPlot; |
| 21 | 22 |
| 22 class GrAADistanceFieldPathRenderer : public GrPathRenderer { | 23 class GrAADistanceFieldPathRenderer : public GrPathRenderer { |
| 23 public: | 24 public: |
| 24 GrAADistanceFieldPathRenderer(GrContext* context); | 25 GrAADistanceFieldPathRenderer(GrContext* context); |
| 25 virtual ~GrAADistanceFieldPathRenderer(); | 26 virtual ~GrAADistanceFieldPathRenderer(); |
| 26 | 27 |
| 27 virtual bool canDrawPath(const SkPath& path, | 28 virtual bool canDrawPath(const SkPath& path, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 78 |
| 78 bool internalDrawPath(const SkPath& path, const PathData* pathData, GrDrawTa
rget* target); | 79 bool internalDrawPath(const SkPath& path, const PathData* pathData, GrDrawTa
rget* target); |
| 79 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool
antiAlias, | 80 PathData* addPathToAtlas(const SkPath& path, const SkStrokeRec& stroke, bool
antiAlias, |
| 80 uint32_t dimension, SkScalar scale); | 81 uint32_t dimension, SkScalar scale); |
| 81 bool freeUnusedPlot(); | 82 bool freeUnusedPlot(); |
| 82 | 83 |
| 83 typedef GrPathRenderer INHERITED; | 84 typedef GrPathRenderer INHERITED; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 #endif | 87 #endif |
| OLD | NEW |