aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-29 19:09:48 +0000
committerGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-29 19:09:48 +0000
commited8d6bb2be0ed6a20841573682afaa46dea15175 (patch)
tree83a353e70f849b4af9656ad80ed1eb2316123dbc /include
parent06e7424c70595cdfeee9a0ce8a2fb0f7f17eac41 (diff)
Moving updateClipConservativelyUsingBounds into SkCanvas
This method is being moved from SkPictureRecord to become a protected member of SkCanvas so that other classes derived from SkCanvas can use it. This Patch also applies the fix provided by updateClipConservativelyUsingBounds to SkPictureUtils::GatherPixelRefs BUG=https://code.google.com/p/chromium/issues/detail?id=244893 Review URL: https://codereview.chromium.org/15894005 git-svn-id: http://skia.googlecode.com/svn/trunk@9326 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 821f86b5ad..b315797c41 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -1011,6 +1011,11 @@ protected:
bool clipRectBounds(const SkRect* bounds, SaveFlags flags,
SkIRect* intersection);
+ // Called by child classes that override clipPath and clipRRect to only
+ // track fast conservative clip bounds, rather than exact clips.
+ bool updateClipConservativelyUsingBounds(const SkRect&, SkRegion::Op,
+ bool inverseFilled);
+
// notify our surface (if we have one) that we are about to draw, so it
// can perform copy-on-write or invalidate any cached images
void predrawNotify();