From a4daf193196c6da63b1c16e3490cad3c5ca6bf8b Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 14 Dec 2017 13:25:04 -0500 Subject: Moving extra options/parameters into PDFMetadata Bug: skia: Change-Id: I29aa69e5765a7f8ba05b0361912d1f5276d77de3 Reviewed-on: https://skia-review.googlesource.com/84501 Reviewed-by: Hal Canary Commit-Queue: Mike Reed --- bench/PDFBench.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'bench') 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 shader = SkPDFMakeShader(&doc, fShader.get(), SkMatrix::I(), {0, 0, 400, 400}, SK_ColorBLACK); } -- cgit v1.2.3