aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrDrawAtlasBatch.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/GrDrawAtlasBatch.h
parenta7008403dcd03302e88e2df546d8427afe9e0e80 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'src/gpu/batches/GrDrawAtlasBatch.h')
-rw-r--r--src/gpu/batches/GrDrawAtlasBatch.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/batches/GrDrawAtlasBatch.h b/src/gpu/batches/GrDrawAtlasBatch.h
index 9a864c01c9..de128f211d 100644
--- a/src/gpu/batches/GrDrawAtlasBatch.h
+++ b/src/gpu/batches/GrDrawAtlasBatch.h
@@ -14,11 +14,13 @@
class GrDrawAtlasBatch : public GrVertexBatch {
public:
+ DEFINE_BATCH_CLASS_ID
+
struct Geometry {
GrColor fColor;
SkTArray<uint8_t, true> fVerts;
};
-
+
static GrDrawBatch* Create(const Geometry& geometry, const SkMatrix& viewMatrix,
int spriteCount, const SkRSXform* xforms, const SkRect* rects,
const SkColor* colors) {
@@ -66,6 +68,8 @@ private:
bool fColorIgnored;
bool fCoverageIgnored;
bool fHasColors;
+
+ typedef GrVertexBatch INHERITED;
};
#endif