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

Unified Diff: skia/ext/image_operations.cc

Issue 159381: Attempt to fix the ImageOperations::CreateMaskedBitmap UMR by bringing the un... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 months 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 | « no previous file | skia/ext/image_operations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/image_operations.cc
===================================================================
--- skia/ext/image_operations.cc (revision 21606)
+++ skia/ext/image_operations.cc (working copy)
@@ -388,12 +388,12 @@
SkAutoLockPixels lock_alpha(alpha);
SkAutoLockPixels lock_masked(masked);
- for (int y = 0; y < rgb.height(); y++) {
+ for (int y = 0; y < masked.height(); y++) {
uint32* rgb_row = rgb.getAddr32(0, y);
uint32* alpha_row = alpha.getAddr32(0, y);
uint32* dst_row = masked.getAddr32(0, y);
- for (int x = 0; x < rgb.width(); x++) {
+ for (int x = 0; x < masked.width(); x++) {
uint32 alpha_pixel = alpha_row[x];
SkColor rgb_pixel = SkUnPreMultiply::PMColorToColor(rgb_row[x]);
« no previous file with comments | « no previous file | skia/ext/image_operations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698