diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-11 12:24:41 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-11 12:24:41 +0000 |
commit | e74e28df11abbe069d82221ee029d281a81ea328 (patch) | |
tree | 5d098eb7c70eb5280234dc713fda3801fad07956 /src | |
parent | 1501803e93a9c76b4632086d05c2813cb475db27 (diff) |
pass correct value for black
git-svn-id: http://skia.googlecode.com/svn/trunk@1836 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkBlitter_ARGB32.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkBlitter_ARGB32.cpp b/src/core/SkBlitter_ARGB32.cpp index 073757ac0a..a5ce6087f2 100644 --- a/src/core/SkBlitter_ARGB32.cpp +++ b/src/core/SkBlitter_ARGB32.cpp @@ -397,10 +397,9 @@ void SkARGB32_Blitter::blitRect(int x, int y, int width, int height) { void SkARGB32_Black_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { SkASSERT(mask.fBounds.contains(clip)); + SkPMColor black = (SkPMColor)(SK_A32_MASK << SK_A32_SHIFT); if (mask.fFormat == SkMask::kBW_Format) { - SkPMColor black = (SkPMColor)(SK_A32_MASK << SK_A32_SHIFT); - SkARGB32_BlitBW(fDevice, mask, clip, black); } else if (SkMask::kARGB32_Format == mask.fFormat) { SkARGB32_Blit32(fDevice, mask, clip, fPMColor); @@ -413,7 +412,7 @@ void SkARGB32_Black_Blitter::blitMask(const SkMask& mask, const SkIRect& clip) { fDevice.rowBytes(), SkBitmap::kARGB_8888_Config, mask.getAddr(clip.fLeft, clip.fTop), mask.fRowBytes, - 0xFF000000, clip.width(), clip.height()); + black, clip.width(), clip.height()); } } |