aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrStencilPathBatch.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-09-17 11:50:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-17 11:50:57 -0700
commiteb44d53cf96a7eaf103a98d76079ce1f5495e343 (patch)
tree5693fc5be9ef4dccb7917b13905d821963b48e4f /src/gpu/batches/GrStencilPathBatch.h
parenta7008403dcd03302e88e2df546d8427afe9e0e80 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'src/gpu/batches/GrStencilPathBatch.h')
-rw-r--r--src/gpu/batches/GrStencilPathBatch.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/batches/GrStencilPathBatch.h b/src/gpu/batches/GrStencilPathBatch.h
index 9f6740a046..a0dcadb620 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 @@ private:
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 @@ private:
GrScissorState fScissor;
GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
+
+ typedef GrBatch INHERITED;
};
#endif