Index: src/gpu/batches/GrClearBatch.h |
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h |
index 79e10ca167ea881609d2c42c69c1f3fbcc78301a..9a653a3962ca386efdd6c3d55033fc41fbccd029 100644 |
--- a/src/gpu/batches/GrClearBatch.h |
+++ b/src/gpu/batches/GrClearBatch.h |
@@ -23,7 +23,7 @@ public: |
, fRect(rect) |
, fColor(color) |
, fRenderTarget(rt) { |
- fBounds = SkRect::Make(rect); |
+ this->setBounds(SkRect::Make(rect), HasAABloat::kNo, IsZeroArea::kNo); |
} |
const char* name() const override { return "Clear"; } |
@@ -49,7 +49,7 @@ private: |
SkASSERT(cb->fRenderTarget == fRenderTarget); |
if (cb->fRect.contains(fRect)) { |
fRect = cb->fRect; |
- fBounds = cb->fBounds; |
+ this->replaceBounds(*t); |
fColor = cb->fColor; |
return true; |
} else if (cb->fColor == fColor && fRect.contains(cb->fRect)) { |
@@ -80,7 +80,7 @@ public: |
, fRect(rect) |
, fInsideClip(insideClip) |
, fRenderTarget(rt) { |
- fBounds = SkRect::Make(rect); |
+ this->setBounds(SkRect::Make(rect), HasAABloat::kNo, IsZeroArea::kNo); |
} |
const char* name() const override { return "ClearStencilClip"; } |