aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrDiscardBatch.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-08 06:40:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-08 06:40:57 -0700
commit88cf17d099085b8085ab11571b5094163dbb2c84 (patch)
tree0737705697caa8998453d5519a19a6f12b888104 /src/gpu/batches/GrDiscardBatch.h
parentac41bac40f5a80d2bc5ccec584c23478a6900179 (diff)
Consolidate handling of infinitely thin primitives and aa bloat handing WRT batch bounds.
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"; }