diff options
author | halcanary <halcanary@google.com> | 2016-03-25 05:52:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-25 05:52:57 -0700 |
commit | d11c7268a2a4303e842f4ba16da98fcd0a2b7555 (patch) | |
tree | 80a929bff0e3ded16db8625c6f62aa92160ab1f4 /src/pdf/SkPDFDocument.h | |
parent | 2e59f1f2fd497367585374eb20f5c04d92ae6d26 (diff) |
SkPDF: speed up SkPDFShader generation.
Stop using SkString::append() when SkDynamicMemoryWStream
works better.
Also add a bench to prove that this speeds things up:
before:
micros bench
59.33 ? PDFShader nonrendering
after:
micros bench
34.55 ? PDFShader nonrendering
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1833793002
Review URL: https://codereview.chromium.org/1833793002
Diffstat (limited to 'src/pdf/SkPDFDocument.h')
-rw-r--r-- | src/pdf/SkPDFDocument.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdf/SkPDFDocument.h b/src/pdf/SkPDFDocument.h index c036981a27..df6037ab94 100644 --- a/src/pdf/SkPDFDocument.h +++ b/src/pdf/SkPDFDocument.h @@ -8,6 +8,7 @@ #define SkPDFDocument_DEFINED #include "SkDocument.h" +#include "SkPDFCanon.h" #include "SkPDFMetadata.h" #include "SkPDFFont.h" |