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

Unified Diff: tools/bench_playback.cpp

Issue 234913004: use SkIntToScalar, fix windows build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bench_playback.cpp
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp
index 0d00d0a09d3a97f9d2d494de7b6dc105691c12ad..198e1f058b91a5461cf18323743dcc8c517bc44e 100644
--- a/tools/bench_playback.cpp
+++ b/tools/bench_playback.cpp
@@ -30,7 +30,7 @@ static void bench(SkPMColor* scratch, SkPicture& src, const char* name) {
SkAutoTDelete<SkCanvas> canvas(
SkCanvas::NewRasterDirectN32(src.width(), src.height(), scratch, 0));
- canvas->clipRect(SkRect::MakeWH(FLAGS_tile, FLAGS_tile));
+ canvas->clipRect(SkRect::MakeWH(SkIntToScalar(FLAGS_tile), SkIntToScalar(FLAGS_tile)));
const SkMSec start = SkTime::GetMSecs();
for (int i = 0; i < FLAGS_loops; i++) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698