Index: src/gpu/batches/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
index 46fa280cfd86c6e67a429c547a1e987e1af6f135..901d38369cfe072496a306b063544a8846a98b39 100644 |
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
@@ -1385,6 +1385,7 @@ bool GrTessellatingPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) cons |
class TessellatingPathBatch : public GrVertexBatch { |
public: |
+ DEFINE_BATCH_CLASS_ID |
static GrDrawBatch* Create(const GrColor& color, |
const SkPath& path, |
@@ -1587,13 +1588,12 @@ private: |
const GrStrokeInfo& stroke, |
const SkMatrix& viewMatrix, |
const SkRect& clipBounds) |
- : fColor(color) |
+ : INHERITED(ClassID()) |
+ , fColor(color) |
, fPath(path) |
, fStroke(stroke) |
, fViewMatrix(viewMatrix) |
, fClipBounds(clipBounds) { |
- this->initClassID<TessellatingPathBatch>(); |
- |
fBounds = path.getBounds(); |
if (!stroke.isFillStyle()) { |
SkScalar radius = SkScalarHalf(stroke.getWidth()); |
@@ -1614,6 +1614,8 @@ private: |
SkMatrix fViewMatrix; |
SkRect fClipBounds; // in source space |
GrPipelineOptimizations fPipelineInfo; |
+ |
+ typedef GrVertexBatch INHERITED; |
}; |
bool GrTessellatingPathRenderer::onDrawPath(const DrawPathArgs& args) { |