summaryrefslogtreecommitdiff
path: root/pdfium.gyp
diff options
context:
space:
mode:
authorcaryclark <caryclark@google.com>2016-06-29 07:10:49 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-29 07:10:50 -0700
commite89391e2cbec0788d39985df9c0967dd467cbfa8 (patch)
tree1c6c94fb35fb6a0bc16a165761b3340c97e0f4b5 /pdfium.gyp
parent0efab9428fe9fe0a1af4f8eba9fabb78b1eee44a (diff)
downloadpdfium-e89391e2cbec0788d39985df9c0967dd467cbfa8.tar.xz
add local caching for skia draws
PDFium assumes the lowest common denominator and draws many strings and paths that can be accumulated. Defer canvas->restore() calls until required because the clip changed. Defer text and path draws as long as subsequent calls concatenate additional data. Include debugging switch to allow disabling cache at compile-time while bugs are shaken out. Review-Url: https://codereview.chromium.org/2064753002
Diffstat (limited to 'pdfium.gyp')
-rw-r--r--pdfium.gyp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pdfium.gyp b/pdfium.gyp
index a84c83df13..ca9f3f8aad 100644
--- a/pdfium.gyp
+++ b/pdfium.gyp
@@ -944,6 +944,11 @@
'xfa/fxfa/parser/xfa_utils_imp_unittest.cpp',
],
}],
+ ['pdf_use_skia==1', {
+ 'sources': [
+ 'core/fxge/skia/fx_skia_device_unittest.cpp',
+ ],
+ }],
['pdf_enable_v8==1', {
'include_dirs': [
'<(DEPTH)/v8',