aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-31 21:44:25 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-31 21:44:25 +0000
commit56ce48ade325f6f49acb0da31d6252806e4ed7ef (patch)
treee804f1b07497ae7bc57e6b52bf27100364cca1f0 /include
parentfc7ceefd1a6d90e659960336ecea8742f4d4d146 (diff)
Add can-ignore-rect hint to clear call
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 2b306c0158..f0aba38ccb 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -379,10 +379,12 @@ public:
* Clear the entire or rect of the render target, ignoring any clips.
* @param rect the rect to clear or the whole thing if rect is NULL.
* @param color the color to clear to.
+ * @param canIgnoreRect allows partial clears to be converted to whole
+ * clears on platforms for which that is cheap
* @param target if non-NULL, the render target to clear otherwise clear
* the current render target
*/
- void clear(const SkIRect* rect, GrColor color,
+ void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect,
GrRenderTarget* target = NULL);
/**