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

Unified Diff: src/gpu/GrGpu.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/GrGpu.cpp
===================================================================
--- src/gpu/GrGpu.cpp (revision 12054)
+++ src/gpu/GrGpu.cpp (working copy)
@@ -205,6 +205,7 @@
void GrGpu::clear(const SkIRect* rect,
GrColor color,
+ bool canIgnoreRect,
GrRenderTarget* renderTarget) {
GrDrawState::AutoRenderTargetRestore art;
if (NULL != renderTarget) {
@@ -215,7 +216,7 @@
return;
}
this->handleDirtyContext();
- this->onClear(rect, color);
+ this->onClear(rect, color, canIgnoreRect);
}
void GrGpu::forceRenderTargetFlush() {
« src/gpu/GrDrawTarget.h ('K') | « src/gpu/GrGpu.h ('k') | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698