Index: src/gpu/batches/GrClearBatch.h |
diff --git a/src/gpu/batches/GrClearBatch.h b/src/gpu/batches/GrClearBatch.h |
index 7d84bc3859e6178e1a3c267f6a0f1ac43ac9103b..937059f3e1f30a25e129c92f83e1a4cbfdc7e438 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); |