diff options
author | halcanary <halcanary@google.com> | 2016-04-27 07:45:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-27 07:45:18 -0700 |
commit | 4b6566644f704cf9e30c71fa547c9b5915752792 (patch) | |
tree | f670fd01006423b2282ce74a80921aea121a77cf /bench | |
parent | d1556071715d28217b7c64774335fcce2cbf46c6 (diff) |
SkDocument/PDF: new API
has a pdf/a switch.
sets metadata in factory.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1916093002
Review URL: https://codereview.chromium.org/1916093002
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PDFBench.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp index e3505450d2..76ee3cad0d 100644 --- a/bench/PDFBench.cpp +++ b/bench/PDFBench.cpp @@ -182,7 +182,8 @@ struct PDFShaderBench : public Benchmark { SkASSERT(fShader); while (loops-- > 0) { NullWStream nullStream; - SkPDFDocument doc(&nullStream, nullptr, 72, nullptr, false); + SkPDFDocument doc(&nullStream, nullptr, 72, + SkDocument::PDFMetadata(), nullptr, false); sk_sp<SkPDFObject> shader( SkPDFShader::GetPDFShader( &doc, 72, fShader.get(), SkMatrix::I(), |