Chromium Code Reviews| Index: gm/blurrect.cpp |
| diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp |
| index a56c51b3ca5b25f6171a1bfb5830c71d9dbd3512..0ea6f87071d50450f1c1fa6ae9bbc0c259c771e3 100644 |
| --- a/gm/blurrect.cpp |
| +++ b/gm/blurrect.cpp |
| @@ -203,7 +203,7 @@ protected: |
| } |
| canvas->save(); |
| - canvas->translate(cur_x, cur_y); |
| + canvas->translate((SkScalar)cur_x, (SkScalar)cur_y); |
|
bungeman-skia
2014/05/28 22:43:56
You should rather use SkIntToScalar here, you dirt
mtklein
2014/05/28 22:48:26
I thought the consensus was that SkIntToScalar is
|
| canvas->translate(-(bm.width() - r.width())/2, -(bm.height()-r.height())/2); |
| canvas->drawBitmap(bm, 0.f, 0.f, NULL); |
| canvas->restore(); |