Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
index f06553c2d8e069b13fe483f06e35e3734fb1ea6a..ee5fdb8a804f23fc88d88e4c96e8d02542fdb866 100644 |
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
@@ -111,6 +111,8 @@ static const SkScalar kAntiAliasPad = 1.0f; |
class AADistanceFieldPathBatch : public GrVertexBatch { |
public: |
+ DEFINE_BATCH_CLASS_ID |
+ |
typedef GrAADistanceFieldPathRenderer::PathData PathData; |
typedef SkTDynamicHash<PathData, PathData::Key> PathCache; |
typedef GrAADistanceFieldPathRenderer::PathDataList PathDataList; |
@@ -276,8 +278,8 @@ private: |
AADistanceFieldPathBatch(const Geometry& geometry, GrColor color, const SkMatrix& viewMatrix, |
GrBatchAtlas* atlas, |
- PathCache* pathCache, PathDataList* pathList) { |
- this->initClassID<AADistanceFieldPathBatch>(); |
+ PathCache* pathCache, PathDataList* pathList) |
+ : INHERITED(ClassID()) { |
fBatch.fColor = color; |
fBatch.fViewMatrix = viewMatrix; |
fGeoData.push_back(geometry); |
@@ -519,6 +521,8 @@ private: |
GrBatchAtlas* fAtlas; |
PathCache* fPathCache; |
PathDataList* fPathList; |
+ |
+ typedef GrVertexBatch INHERITED; |
}; |
bool GrAADistanceFieldPathRenderer::onDrawPath(const DrawPathArgs& args) { |