| commit | 94acc70312d8fe6605dea99f27f62b180bf22284 | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 06 18:43:21 2012 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Sep 06 18:43:21 2012 +0000 |
| tree | 1aee4ca3784d75c3ae2eb1a626d1cb5d6479022e | |
| parent | 22023bea1b7c5eff958214a3fd6f7fc4ffeec76c [diff] [blame] |
Fixed Windows compiler complaints (esp. in debugger) https://codereview.appspot.com/6497090/ git-svn-id: http://skia.googlecode.com/svn/trunk@5419 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index 0bc3df1..edbdce9 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp
@@ -251,7 +251,7 @@ + fTileMinPowerOf2Width; } - int num_bits = SkScalarCeilToInt(SkScalarLog2(fPicture->width())); + int num_bits = SkScalarCeilToInt(SkScalarLog2(SkIntToScalar(fPicture->width()))); int largest_possible_tile_size = 1 << num_bits; // The tile height is constant for a particular picture.