Correct rotate image to clockwise (currently counter clockwise).
[email protected]
BUG=
Review URL: https://chromiumcodereview.appspot.com/12570011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187792 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc
index 10cce9c..bcc27238 100644
--- a/ui/gfx/skbitmap_operations.cc
+++ b/ui/gfx/skbitmap_operations.cc
@@ -820,17 +820,17 @@
switch (rotation) {
case ROTATION_90_CW:
- angle = SkFloatToScalar(-90.0f);
+ angle = SkFloatToScalar(90.0f);
result.setConfig(
SkBitmap::kARGB_8888_Config, source.height(), source.width());
break;
case ROTATION_180_CW:
- angle = SkFloatToScalar(-180.0f);
+ angle = SkFloatToScalar(180.0f);
result.setConfig(
SkBitmap::kARGB_8888_Config, source.width(), source.height());
break;
case ROTATION_270_CW:
- angle = SkFloatToScalar(-270.0f);
+ angle = SkFloatToScalar(270.0f);
result.setConfig(
SkBitmap::kARGB_8888_Config, source.height(), source.width());
break;