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++) { |