Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index bb020f5b503d7ac7c7207fcc663e37e00542bab2..64016cf44177b509ff1a50e7087f77b3254237f2 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -216,13 +216,13 @@ GrIndexBuffer* GrGpu::createIndexBuffer(size_t size, bool dynamic) { |
return ib; |
} |
-void GrGpu::clear(const SkIRect* rect, |
+void GrGpu::clear(const SkIRect& rect, |
GrColor color, |
- bool canIgnoreRect, |
GrRenderTarget* renderTarget) { |
SkASSERT(renderTarget); |
+ SkASSERT(SkIRect::MakeWH(renderTarget->width(), renderTarget->height()).contains(rect)); |
this->handleDirtyContext(); |
- this->onClear(renderTarget, rect, color, canIgnoreRect); |
+ this->onClear(renderTarget, rect, color); |
} |
void GrGpu::clearStencilClip(const SkIRect& rect, |