diff options
Diffstat (limited to 'src/gpu/batches/GrAAStrokeRectBatch.h')
-rw-r--r-- | src/gpu/batches/GrAAStrokeRectBatch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.h b/src/gpu/batches/GrAAStrokeRectBatch.h index ae7534823b..fad5bd9d8d 100644 --- a/src/gpu/batches/GrAAStrokeRectBatch.h +++ b/src/gpu/batches/GrAAStrokeRectBatch.h @@ -18,6 +18,8 @@ class GrResourceProvider; class GrAAStrokeRectBatch : public GrVertexBatch { public: + DEFINE_BATCH_CLASS_ID + // TODO support AA rotated stroke rects by copying around view matrices struct Geometry { GrColor fColor; @@ -48,8 +50,8 @@ private: void onPrepareDraws(Target*) override; void initBatchTracker(const GrPipelineOptimizations&) override; - GrAAStrokeRectBatch(const Geometry& geometry, const SkMatrix& viewMatrix) { - this->initClassID<GrAAStrokeRectBatch>(); + GrAAStrokeRectBatch(const Geometry& geometry, const SkMatrix& viewMatrix) + : INHERITED(ClassID()) { fBatch.fViewMatrix = viewMatrix; fGeoData.push_back(geometry); @@ -105,6 +107,8 @@ private: BatchTracker fBatch; SkSTArray<1, Geometry, true> fGeoData; + + typedef GrVertexBatch INHERITED; }; |