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

Unified Diff: dm/DMUtil.cpp

Issue 513983002: Try out scalar picture sizes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT again Created 6 years, 4 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
« no previous file with comments | « dm/DMSKPTask.cpp ('k') | experimental/nanomsg/picture_demo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMUtil.cpp
diff --git a/dm/DMUtil.cpp b/dm/DMUtil.cpp
index 33af18ecdd5745e88b9131f005b6c7928b499c13..19b1c0f397f99e9cee8f75c41a4c0b21e243e95e 100644
--- a/dm/DMUtil.cpp
+++ b/dm/DMUtil.cpp
@@ -21,8 +21,8 @@ SkString FileToTaskName(SkString filename) {
}
SkPicture* RecordPicture(skiagm::GM* gm, SkBBHFactory* factory, bool skr) {
- const int w = gm->getISize().width(),
- h = gm->getISize().height();
+ const SkScalar w = SkIntToScalar(gm->getISize().width()),
+ h = SkIntToScalar(gm->getISize().height());
SkPictureRecorder recorder;
SkCanvas* canvas = skr ? recorder.EXPERIMENTAL_beginRecording(w, h, factory)
« no previous file with comments | « dm/DMSKPTask.cpp ('k') | experimental/nanomsg/picture_demo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698