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