summaryrefslogtreecommitdiffstats
path: root/skia/ext/image_operations.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/image_operations.cc')
-rw-r--r--skia/ext/image_operations.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/image_operations.cc b/skia/ext/image_operations.cc
index 9b0beb1..a86f99e 100644
--- a/skia/ext/image_operations.cc
+++ b/skia/ext/image_operations.cc
@@ -388,12 +388,12 @@ SkBitmap ImageOperations::CreateMaskedBitmap(const SkBitmap& rgb,
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]);