aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrCopySurfaceBatch.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/GrCopySurfaceBatch.h
parenta7008403dcd03302e88e2df546d8427afe9e0e80 (diff)
add a ClassID function to GrBatch
Diffstat (limited to 'src/gpu/batches/GrCopySurfaceBatch.h')
-rw-r--r--src/gpu/batches/GrCopySurfaceBatch.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/batches/GrCopySurfaceBatch.h b/src/gpu/batches/GrCopySurfaceBatch.h
index 584bbab5d7..ed5e77f5b0 100644
--- a/src/gpu/batches/GrCopySurfaceBatch.h
+++ b/src/gpu/batches/GrCopySurfaceBatch.h
@@ -15,6 +15,8 @@
class GrCopySurfaceBatch final : public GrBatch {
public:
+ DEFINE_BATCH_CLASS_ID
+
static GrBatch* Create(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
const SkIPoint& dstPoint);
@@ -37,11 +39,11 @@ public:
private:
GrCopySurfaceBatch(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
const SkIPoint& dstPoint)
- : fDst(dst)
+ : INHERITED(ClassID())
+ , fDst(dst)
, fSrc(src)
, fSrcRect(srcRect)
, fDstPoint(dstPoint) {
- this->initClassID<GrCopySurfaceBatch>();
fBounds = SkRect::MakeXYWH(SkIntToScalar(dstPoint.fX), SkIntToScalar(dstPoint.fY),
SkIntToScalar(srcRect.width()), SkIntToScalar(srcRect.height()));
}
@@ -58,6 +60,8 @@ private:
GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc;
SkIRect fSrcRect;
SkIPoint fDstPoint;
+
+ typedef GrBatch INHERITED;
};
#endif