commit | 517dbe8bdc2a4aa3e90b30abae34a02959ba15a7 | [log] [tgz] |
---|---|---|
author | fmalita@google.com <fmalita@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Nov 21 17:50:15 2013 +0000 |
committer | fmalita@google.com <fmalita@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Nov 21 17:50:15 2013 +0000 |
tree | daf0acfb07d9dbc3d8adca89c4efbc17c6b79459 | |
parent | ce0e4efabd00b38aaaeb33457dcdb6c98e6eec12 [diff] |
Fix SkScalar conversion warning. TBR=scroggo@google.com Review URL: https://codereview.chromium.org/81293002 git-svn-id: http://skia.googlecode.com/svn/trunk@12348 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp index 0cde3b5..db041cd 100644 --- a/src/utils/debugger/SkDrawCommand.cpp +++ b/src/utils/debugger/SkDrawCommand.cpp
@@ -498,7 +498,8 @@ canvas->clear(0xFFFFFFFF); canvas->save(); - SkRect bounds = SkRect::MakeWH(fPicture.width(), fPicture.height()); + SkRect bounds = SkRect::MakeWH(SkIntToScalar(fPicture.width()), + SkIntToScalar(fPicture.height())); xlate_and_scale_to_bounds(canvas, bounds); canvas->drawPicture(const_cast<SkPicture&>(fPicture));