aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrDiscardBatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/batches/GrDiscardBatch.h')
-rw-r--r--src/gpu/batches/GrDiscardBatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/batches/GrDiscardBatch.h b/src/gpu/batches/GrDiscardBatch.h
index a739f23b7d..5dafe54f11 100644
--- a/src/gpu/batches/GrDiscardBatch.h
+++ b/src/gpu/batches/GrDiscardBatch.h
@@ -20,7 +20,8 @@ public:
GrDiscardBatch(GrRenderTarget* rt)
: INHERITED(ClassID())
, fRenderTarget(rt) {
- fBounds = SkRect::MakeWH(SkIntToScalar(rt->width()), SkIntToScalar(rt->height()));
+ this->setBounds(SkRect::MakeIWH(rt->width(), rt->height()), HasAABloat::kNo,
+ IsZeroArea::kNo);
}
const char* name() const override { return "Discard"; }