diff options
author | caryclark <caryclark@google.com> | 2016-06-29 07:10:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-29 07:10:50 -0700 |
commit | e89391e2cbec0788d39985df9c0967dd467cbfa8 (patch) | |
tree | 1c6c94fb35fb6a0bc16a165761b3340c97e0f4b5 /BUILD.gn | |
parent | 0efab9428fe9fe0a1af4f8eba9fabb78b1eee44a (diff) | |
download | pdfium-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 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1490,6 +1490,10 @@ test("pdfium_unittests") { "xfa/fxfa/parser/xfa_utils_imp_unittest.cpp", ] } + if (pdf_use_skia) { + sources += [ "core/fxge/skia/fx_skia_device_unittest.cpp" ] + deps += [ "//skia" ] + } if (pdf_enable_v8) { sources += [ "fpdfsdk/javascript/public_methods_unittest.cpp" ] include_dirs += [ |