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

Unified Diff: samplecode/SamplePdfFileViewer.cpp

Issue 19000004: add ability to specify the DPI at which to render the page (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months 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
Index: samplecode/SamplePdfFileViewer.cpp
===================================================================
--- samplecode/SamplePdfFileViewer.cpp (revision 10007)
+++ samplecode/SamplePdfFileViewer.cpp (working copy)
@@ -46,7 +46,7 @@
if (renderer.loaded()) {
pic = SkNEW(SkPicture);
SkCanvas* canvas = pic->beginRecording((int)renderer.MediaBox(0).width(), (int)renderer.MediaBox(0).height());
- renderer.renderPage(0, canvas);
+ renderer.renderPage(0, canvas, renderer.MediaBox(0));
pic->endRecording();
}
return pic;
« experimental/PdfViewer/SkPdfRenderer.h ('K') | « experimental/PdfViewer/pdf_viewer_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698