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

Unified Diff: src/gpu/GrGpu.h

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.h
===================================================================
--- src/gpu/GrGpu.h (revision 12054)
+++ src/gpu/GrGpu.h (working copy)
@@ -265,6 +265,7 @@
// GrDrawTarget overrides
virtual void clear(const SkIRect* rect,
GrColor color,
+ bool canIgnoreRect,
GrRenderTarget* renderTarget = NULL) SK_OVERRIDE;
virtual void purgeResources() SK_OVERRIDE {
@@ -426,8 +427,9 @@
virtual GrPath* onCreatePath(const SkPath& path, const SkStrokeRec&) = 0;
// overridden by backend-specific derived class to perform the clear and
- // clearRect. NULL rect means clear whole target.
- virtual void onClear(const SkIRect* rect, GrColor color) = 0;
+ // clearRect. NULL rect means clear whole target. If canIgnoreRect is
+ // true, it is okay to perform a full clear instead of a partial clear
+ virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect) = 0;
// overridden by backend-specific derived class to perform the draw call.
virtual void onGpuDraw(const DrawInfo&) = 0;
« src/gpu/GrDrawTarget.h ('K') | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698