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

Unified Diff: tools/skhello.cpp

Issue 24811002: Update the SkDocument interface to allow for 1) abort won't emit pdf, 2) close can report success/f… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: update comments Created 7 years, 2 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
« src/pdf/SkPDFDevice.cpp ('K') | « tools/render_pdfs_main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skhello.cpp
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index d30849bcfb4d987d3de8e097bfe26db8ef0fcfb2..148dea81a89bbb9d1480982c6ddcab49e7a689e8 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -48,7 +48,7 @@ static bool do_document(int w, int h, const char path[], const char text[],
if (doc.get()) {
SkScalar width = SkIntToScalar(w);
SkScalar height = SkIntToScalar(h);
- doDraw(doc->beginPage(width, height, NULL), paint, text);
+ doDraw(doc->beginPage(SkSize::Make(width, height), NULL), paint, text);
return true;
}
return false;
« src/pdf/SkPDFDevice.cpp ('K') | « tools/render_pdfs_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698