aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrClearBatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/batches/GrClearBatch.h')
-rw-r--r--src/gpu/batches/GrClearBatch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h
index 27e19fab6e..16f1ddd7f4 100644
--- a/src/gpu/batches/GrClearBatch.h
+++ b/src/gpu/batches/GrClearBatch.h
@@ -71,6 +71,9 @@ private:
// same color.
GrClearBatch* cb = t->cast<GrClearBatch>();
SkASSERT(cb->fRenderTarget == fRenderTarget);
+ if (!fClip.windowRectsState().cheapEqualTo(cb->fClip.windowRectsState())) {
+ return false;
+ }
if (cb->contains(this)) {
fClip = cb->fClip;
this->replaceBounds(*t);