use SkIntToScalar, fix windows build

NOTRY=true
NOTREECHECKS=true
BUG=skia:
R=mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/234913004

git-svn-id: http://skia.googlecode.com/svn/trunk@14155 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2014-04-11 16:13:54 +00:00
parent c873329ae9
commit 4bffdf2a10

View File

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