diff options
Diffstat (limited to 'src/gpu/batches/GrDiscardBatch.h')
-rw-r--r-- | src/gpu/batches/GrDiscardBatch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/batches/GrDiscardBatch.h b/src/gpu/batches/GrDiscardBatch.h index 8a050a7122..c13e7327d7 100644 --- a/src/gpu/batches/GrDiscardBatch.h +++ b/src/gpu/batches/GrDiscardBatch.h @@ -15,9 +15,11 @@ class GrDiscardBatch final : public GrBatch { public: + DEFINE_BATCH_CLASS_ID + GrDiscardBatch(GrRenderTarget* rt) - : fRenderTarget(rt) { - this->initClassID<GrDiscardBatch>(); + : INHERITED(ClassID()) + , fRenderTarget(rt) { fBounds = SkRect::MakeWH(SkIntToScalar(rt->width()), SkIntToScalar(rt->height())); } @@ -43,6 +45,8 @@ private: } GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; + + typedef GrBatch INHERITED; }; #endif |