Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1138)

Unified Diff: ui/gfx/skbitmap_operations.cc

Issue 11644033: Rotated Images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/resources/ash_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/skbitmap_operations.cc
diff --git a/ui/gfx/skbitmap_operations.cc b/ui/gfx/skbitmap_operations.cc
index 58815db1d66f3fac0368ba608ee26efb633931bb..10cce9c45b27aaf3061cafddda74f87b28685de7 100644
--- a/ui/gfx/skbitmap_operations.cc
+++ b/ui/gfx/skbitmap_operations.cc
@@ -837,6 +837,7 @@ SkBitmap SkBitmapOperations::Rotate(const SkBitmap& source,
}
result.allocPixels();
SkCanvas canvas(result);
+ canvas.clear(SkColorSetARGB(0, 0, 0, 0));
canvas.translate(SkFloatToScalar(result.width() * 0.5f),
SkFloatToScalar(result.height() * 0.5f));
« no previous file with comments | « ash/resources/ash_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698