diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 21:44:25 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-31 21:44:25 +0000 |
commit | 56ce48ade325f6f49acb0da31d6252806e4ed7ef (patch) | |
tree | e804f1b07497ae7bc57e6b52bf27100364cca1f0 /include | |
parent | fc7ceefd1a6d90e659960336ecea8742f4d4d146 (diff) |
Add can-ignore-rect hint to clear call
https://codereview.chromium.org/53823003/
git-svn-id: http://skia.googlecode.com/svn/trunk@12064 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 4 |
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); /** |