diff options
author | 2013-07-31 22:54:31 +0000 | |
---|---|---|
committer | 2013-07-31 22:54:31 +0000 | |
commit | 92ffe7d10ef5db05f1f4ffef0cfe898169ba13bf (patch) | |
tree | c393c212095f188b2daf1d556c5a9e86fbda4897 /include | |
parent | 1958e912e1626d6b5f00976700fbe9d91f9c2a05 (diff) |
Inverse fill support in PDF
BUG= https://code.google.com/p/skia/issues/detail?id=241 (partial fix)
R=edisonn@google.com, vandebo@chromium.org, reed@google.com
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19519017
git-svn-id: http://skia.googlecode.com/svn/trunk@10476 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/config/SkUserConfig.h | 10 | ||||
-rw-r--r-- | include/pdf/SkPDFDevice.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h index 60a69e15e9..236a99a03e 100644 --- a/include/config/SkUserConfig.h +++ b/include/config/SkUserConfig.h @@ -192,4 +192,14 @@ */ //#define SK_SUPPORT_GPU 1 + +/* The PDF generation code uses Path Ops to generate inverse fills and complex + * clipping paths, but at this time, Path Ops is not release ready yet. So, + * the code is hidden behind this #define guard. If you are feeling adventurous + * and want the latest and greatest PDF generation code, uncomment the #define. + * When Path Ops is release ready, the define guards and this user config + * define should be removed entirely. + */ +//#define SK_PDF_USE_PATHOPS + #endif diff --git a/include/pdf/SkPDFDevice.h b/include/pdf/SkPDFDevice.h index cb17134aaa..b781978d17 100644 --- a/include/pdf/SkPDFDevice.h +++ b/include/pdf/SkPDFDevice.h @@ -293,6 +293,8 @@ private: */ void copyContentEntriesToData(ContentEntry* entry, SkWStream* data) const; + bool handleInversePath(const SkDraw& d, const SkPath& origPath, + const SkPaint& paint, bool pathIsMutable); bool handleRectAnnotation(const SkRect& r, const SkMatrix& matrix, const SkPaint& paint); bool handlePointAnnotation(const SkPoint* points, size_t count, |