Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1437)

Unified Diff: src/utils/SkPDFRasterizer.cpp

Issue 68533003: pdfviewer: compile pdfviewer in gm, only if the flag is set (currently we compile pdfviewer, even i… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: changes to utils too Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkPDFRasterizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/utils/SkPDFRasterizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698