| Index: src/utils/SkPDFRasterizer.cpp
|
| diff --git a/src/utils/SkPDFRasterizer.cpp b/src/utils/SkPDFRasterizer.cpp
|
| index 267c803ca5e92b041ce8b4e89e7f284411dabb7b..89ac4015b8a206649725a560b55e9273fd07a412 100644
|
| --- a/src/utils/SkPDFRasterizer.cpp
|
| +++ b/src/utils/SkPDFRasterizer.cpp
|
| @@ -18,7 +18,9 @@
|
|
|
| #include "SkPDFRasterizer.h"
|
| #include "SkColorPriv.h"
|
| +#ifdef SK_BUILD_NATIVE_PDF_RENDERER
|
| #include "SkPdfRenderer.h"
|
| +#endif // SK_BUILD_NATIVE_PDF_RENDERER
|
|
|
| bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
|
| size_t size = pdf->getLength();
|
| @@ -73,6 +75,8 @@ bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
|
| return true;
|
| }
|
|
|
| +#ifdef SK_BUILD_NATIVE_PDF_RENDERER
|
| bool SkNativeRasterizePDF(SkStream* pdf, SkBitmap* output) {
|
| return SkPDFNativeRenderToBitmap(pdf, output);
|
| }
|
| +#endif // SK_BUILD_NATIVE_PDF_RENDERER
|
|
|