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

Unified Diff: dm/DMReplayTask.cpp

Issue 26468005: Fix DM build failures. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: declare tool_main 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
« no previous file with comments | « dm/DMGpuTask.cpp ('k') | gyp/everything.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMReplayTask.cpp
diff --git a/dm/DMReplayTask.cpp b/dm/DMReplayTask.cpp
index bc94f73cb1791230a5362d6d299fd7ff6544be3a..7e183f6cbd44e4a45d276f906f0eaadca117ba60 100644
--- a/dm/DMReplayTask.cpp
+++ b/dm/DMReplayTask.cpp
@@ -19,7 +19,9 @@ ReplayTask::ReplayTask(const char* suffix,
void ReplayTask::draw() {
SkPicture picture;
- SkCanvas* canvas = picture.beginRecording(fGM->width(), fGM->height(), 0 /*flags*/);
+ SkCanvas* canvas = picture.beginRecording(SkScalarCeilToInt(fGM->width()),
+ SkScalarCeilToInt(fGM->height()),
+ 0 /*flags*/);
canvas->concat(fGM->getInitialTransform());
fGM->draw(canvas);
@@ -28,7 +30,7 @@ void ReplayTask::draw() {
picture.endRecording();
SkBitmap bitmap;
- bitmap.setConfig(fConfig, fGM->width(), fGM->height());
+ bitmap.setConfig(fConfig, SkScalarCeilToInt(fGM->width()), SkScalarCeilToInt(fGM->height()));
bitmap.allocPixels();
bitmap.eraseColor(0x00000000);
« no previous file with comments | « dm/DMGpuTask.cpp ('k') | gyp/everything.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698