diff options
author | joshualitt <joshualitt@chromium.org> | 2015-09-17 11:21:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-17 11:21:17 -0700 |
commit | 4078d529e9e199eea13456db7bf3a63a104ab5b9 (patch) | |
tree | 5693fc5be9ef4dccb7917b13905d821963b48e4f /src/gpu/batches/GrStrokeRectBatch.h | |
parent | ef4ba3da0b1fe375b9631bcd17c43c645f4aa5a6 (diff) |
add a ClassID function to GrBatch
BUG=skia:
Review URL: https://codereview.chromium.org/1352813003
Diffstat (limited to 'src/gpu/batches/GrStrokeRectBatch.h')
-rw-r--r-- | src/gpu/batches/GrStrokeRectBatch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/batches/GrStrokeRectBatch.h b/src/gpu/batches/GrStrokeRectBatch.h index b374ea862d..b1cb8d4ccb 100644 --- a/src/gpu/batches/GrStrokeRectBatch.h +++ b/src/gpu/batches/GrStrokeRectBatch.h @@ -14,6 +14,8 @@ class GrStrokeRectBatch : public GrVertexBatch { public: + DEFINE_BATCH_CLASS_ID + struct Geometry { GrColor fColor; SkMatrix fViewMatrix; @@ -74,6 +76,8 @@ private: BatchTracker fBatch; SkSTArray<1, Geometry, true> fGeoData; + + typedef GrVertexBatch INHERITED; }; #endif |