diff options
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-18 23:06:29 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-18 23:06:29 +0000 |
commit | 466f3d66f09285d2d988315bacde573a5359ce54 (patch) | |
tree | 397105aa3f233386c60990347a9b8867fa883bdf /include/pdf/SkPDFDevice.h | |
parent | 8989d31cf0472cc73484d74e45c54a24fed2dc00 (diff) |
[PDF] Implement clear xfermode with a mask instead of pushing the clip down.
This approach is much less likely to use an SkRegion and ends up working better for Webkit.
Review URL: http://codereview.appspot.com/4550057
git-svn-id: http://skia.googlecode.com/svn/trunk@1375 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf/SkPDFDevice.h')
-rw-r--r-- | include/pdf/SkPDFDevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index 94c30d8079..0f634aac44 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -166,6 +166,10 @@ private: void cleanUp(); void createFormXObjectFromDevice(SkRefPtr<SkPDFFormXObject>* xobject); + // Clear the passed clip from all existing content entries. + void clearClipFromContent(const SkClipStack* clipStack, + const SkRegion& clipRegion); + // If the paint or clip is such that we shouldn't draw anything, these // return false and do not create a content entry. bool setUpContentEntry(const SkClipStack* clipStack, |