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

Unified Diff: src/utils/SkPDFRasterizer.cpp

Issue 26269002: Initial draft code to run pdfviewer withg gms (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: use a variable instead of commenting the dsefine, so we can enable it on a buildbot 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 a3b4cb4a53eef8015d5a6869ff60a9bbb7a7e96f..267c803ca5e92b041ce8b4e89e7f284411dabb7b 100644
--- a/src/utils/SkPDFRasterizer.cpp
+++ b/src/utils/SkPDFRasterizer.cpp
@@ -18,6 +18,7 @@
#include "SkPDFRasterizer.h"
#include "SkColorPriv.h"
+#include "SkPdfRenderer.h"
bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
size_t size = pdf->getLength();
@@ -71,3 +72,7 @@ bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
return true;
}
+
+bool SkNativeRasterizePDF(SkStream* pdf, SkBitmap* output) {
+ return SkPDFNativeRenderToBitmap(pdf, output);
+}
« 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