Index: src/gpu/batches/GrStencilPathBatch.h |
diff --git a/src/gpu/batches/GrStencilPathBatch.h b/src/gpu/batches/GrStencilPathBatch.h |
index 9f6740a04648d7cd4fdd5a30c7803327acfc178f..a0dcadb620eae059bbbe5ad5f21d13b6af3cef1f 100644 |
--- a/src/gpu/batches/GrStencilPathBatch.h |
+++ b/src/gpu/batches/GrStencilPathBatch.h |
@@ -17,6 +17,8 @@ |
class GrStencilPathBatch final : public GrBatch { |
public: |
+ DEFINE_BATCH_CLASS_ID |
+ |
static GrBatch* Create(const SkMatrix& viewMatrix, |
bool useHWAA, |
const GrStencilSettings& stencil, |
@@ -43,13 +45,13 @@ |
const GrScissorState& scissor, |
GrRenderTarget* renderTarget, |
const GrPath* path) |
- : fViewMatrix(viewMatrix) |
+ : INHERITED(ClassID()) |
+ , fViewMatrix(viewMatrix) |
, fUseHWAA(useHWAA) |
, fStencil(stencil) |
, fScissor(scissor) |
, fRenderTarget(renderTarget) |
, fPath(path) { |
- this->initClassID<GrStencilPathBatch>(); |
fBounds = path->getBounds(); |
} |
@@ -69,6 +71,8 @@ |
GrScissorState fScissor; |
GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; |
GrPendingIOResource<const GrPath, kRead_GrIOType> fPath; |
+ |
+ typedef GrBatch INHERITED; |
}; |
#endif |