Index: src/core/SkBlitter_ARGB32.cpp |
diff --git a/src/core/SkBlitter_ARGB32.cpp b/src/core/SkBlitter_ARGB32.cpp |
index 96280b7baa6f60baccbfecf368eaa693a2c30b98..f2de82a2e9e2ea8cc2748a9a7ea851437771d03b 100644 |
--- a/src/core/SkBlitter_ARGB32.cpp |
+++ b/src/core/SkBlitter_ARGB32.cpp |
@@ -52,7 +52,6 @@ SkARGB32_Blitter::SkARGB32_Blitter(const SkBitmap& device, const SkPaint& paint) |
fSrcB = SkAlphaMul(SkColorGetB(color), scale); |
fPMColor = SkPackARGB32(fSrcA, fSrcR, fSrcG, fSrcB); |
- fColor32Proc = SkBlitRow::ColorProcFactory(); |
} |
const SkBitmap* SkARGB32_Blitter::justAnOpaqueColor(uint32_t* value) { |
@@ -72,7 +71,7 @@ void SkARGB32_Blitter::blitH(int x, int y, int width) { |
SkASSERT(x >= 0 && y >= 0 && x + width <= fDevice.width()); |
uint32_t* device = fDevice.getAddr32(x, y); |
- fColor32Proc(device, device, width, fPMColor); |
+ SkBlitRow::Color32(device, device, width, fPMColor); |
} |
void SkARGB32_Blitter::blitAntiH(int x, int y, const SkAlpha antialias[], |
@@ -97,7 +96,7 @@ void SkARGB32_Blitter::blitAntiH(int x, int y, const SkAlpha antialias[], |
sk_memset32(device, color, count); |
} else { |
uint32_t sc = SkAlphaMulQ(color, SkAlpha255To256(aa)); |
- fColor32Proc(device, device, count, sc); |
+ SkBlitRow::Color32(device, device, count, sc); |
} |
} |
runs += count; |
@@ -109,7 +108,7 @@ void SkARGB32_Blitter::blitAntiH(int x, int y, const SkAlpha antialias[], |
void SkARGB32_Blitter::blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { |
uint32_t* device = fDevice.getAddr32(x, y); |
SkDEBUGCODE((void)fDevice.getAddr32(x + 1, y);) |
- |
+ |
device[0] = SkBlendARGB32(fPMColor, device[0], a0); |
device[1] = SkBlendARGB32(fPMColor, device[1], a1); |
} |
@@ -117,7 +116,7 @@ void SkARGB32_Blitter::blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { |
void SkARGB32_Blitter::blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { |
uint32_t* device = fDevice.getAddr32(x, y); |
SkDEBUGCODE((void)fDevice.getAddr32(x, y + 1);) |
- |
+ |
device[0] = SkBlendARGB32(fPMColor, device[0], a0); |
device = (uint32_t*)((char*)device + fDevice.rowBytes()); |
device[0] = SkBlendARGB32(fPMColor, device[0], a1); |
@@ -248,7 +247,7 @@ void SkARGB32_Blitter::blitRect(int x, int y, int width, int height) { |
size_t rowBytes = fDevice.rowBytes(); |
while (--height >= 0) { |
- fColor32Proc(device, device, width, color); |
+ SkBlitRow::Color32(device, device, width, color); |
device = (uint32_t*)((char*)device + rowBytes); |
} |
} |
@@ -301,7 +300,7 @@ void SkARGB32_Black_Blitter::blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) { |
void SkARGB32_Black_Blitter::blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) { |
uint32_t* device = fDevice.getAddr32(x, y); |
SkDEBUGCODE((void)fDevice.getAddr32(x, y + 1);) |
- |
+ |
device[0] = (a0 << SK_A32_SHIFT) + SkAlphaMulQ(device[0], 256 - a0); |
device = (uint32_t*)((char*)device + fDevice.rowBytes()); |
device[0] = (a1 << SK_A32_SHIFT) + SkAlphaMulQ(device[0], 256 - a1); |