Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 53823003: Add can-ignore-rect hint to clear call (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleaned up Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/SkGpuDevice.cpp
===================================================================
--- src/gpu/SkGpuDevice.cpp (revision 12054)
+++ src/gpu/SkGpuDevice.cpp (working copy)
@@ -548,7 +548,7 @@
void SkGpuDevice::clear(SkColor color) {
SkIRect rect = SkIRect::MakeWH(this->width(), this->height());
- fContext->clear(&rect, SkColor2GrColor(color), fRenderTarget);
+ fContext->clear(&rect, SkColor2GrColor(color), true, fRenderTarget);
fNeedClear = false;
}
@@ -822,7 +822,7 @@
GrContext::AutoRenderTarget art(context, maskTexture->asRenderTarget());
GrContext::AutoClip ac(context, clipRect);
- context->clear(NULL, 0x0);
+ context->clear(NULL, 0x0, true);
GrPaint tempPaint;
if (doAA) {

Powered by Google App Engine
This is Rietveld 408576698