summaryrefslogtreecommitdiff
path: root/BUILD.gn
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 /BUILD.gn
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 'BUILD.gn')
-rw-r--r--BUILD.gn4
1 files changed, 4 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 10fe5df332..91348ce185 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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 += [