diff options
author | Mike Reed <reed@google.com> | 2017-12-14 13:25:04 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-14 21:20:27 +0000 |
commit | a4daf193196c6da63b1c16e3490cad3c5ca6bf8b (patch) | |
tree | da83a9b8ffeb0b07ffb5fdc87705d25c242c5b1c /bench | |
parent | dbd43481f1da3c9c87f5d913660f216ec531870a (diff) |
Moving extra options/parameters into PDFMetadata
Bug: skia:
Change-Id: I29aa69e5765a7f8ba05b0361912d1f5276d77de3
Reviewed-on: https://skia-review.googlesource.com/84501
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PDFBench.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp index 8593928d00..c2a8e60249 100644 --- a/bench/PDFBench.cpp +++ b/bench/PDFBench.cpp @@ -84,7 +84,11 @@ protected: return; } while (loops-- > 0) { - auto object = SkPDFCreateBitmapObject(fImage, nullptr); + auto object = SkPDFCreateBitmapObject(fImage, +#ifdef SK_SUPPORT_LEGACY_PDF_PIXELSERIALIZER + nullptr, +#endif + false); SkASSERT(object); if (!object) { return; @@ -121,7 +125,11 @@ protected: return; } while (loops-- > 0) { - auto object = SkPDFCreateBitmapObject(fImage, nullptr); + auto object = SkPDFCreateBitmapObject(fImage, +#ifdef SK_SUPPORT_LEGACY_PDF_PIXELSERIALIZER + nullptr, +#endif + false); SkASSERT(object); if (!object) { return; @@ -214,8 +222,7 @@ struct PDFShaderBench : public Benchmark { SkASSERT(fShader); while (loops-- > 0) { SkNullWStream nullStream; - SkPDFDocument doc(&nullStream, nullptr, 72, - SkDocument::PDFMetadata(), nullptr, false); + SkPDFDocument doc(&nullStream, nullptr, SkDocument::PDFMetadata()); sk_sp<SkPDFObject> shader = SkPDFMakeShader(&doc, fShader.get(), SkMatrix::I(), {0, 0, 400, 400}, SK_ColorBLACK); } |