aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-19 15:27:13 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-19 15:27:13 +0000
commit57e080c1eb34253a3fc3829c2b03bb3ee63e006f (patch)
treee2e24609244fad3655976bf14c48c3a815fec7f5
parent0da3719050473344b6013fd7b614611984f20eff (diff)
Another fix to r3423, reinstate blitter code that was commented out for
testing and apparently isn't exercised by any of our GMs or tests. git-svn-id: http://skia.googlecode.com/svn/trunk@3427 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/core/SkBlitter_ARGB32.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/SkBlitter_ARGB32.cpp b/src/core/SkBlitter_ARGB32.cpp
index 977c961583..5b9a76a7b4 100644
--- a/src/core/SkBlitter_ARGB32.cpp
+++ b/src/core/SkBlitter_ARGB32.cpp
@@ -214,14 +214,14 @@ void SkARGB32_Blitter::blitRect(int x, int y, int width, int height) {
uint32_t color = fPMColor;
size_t rowBytes = fDevice.rowBytes();
- //if (255 == SkGetPackedA32(color)) {
+ if (255 == SkGetPackedA32(color)) {
fColorRect32Proc(device, width, height, rowBytes, color);
- //} else {
- //while (--height >= 0) {
- //fColor32Proc(device, device, width, color);
- //device = (uint32_t*)((char*)device + rowBytes);
- //}
- //}
+ } else {
+ while (--height >= 0) {
+ fColor32Proc(device, device, width, color);
+ device = (uint32_t*)((char*)device + rowBytes);
+ }
+ }
}
#if defined _WIN32 && _MSC_VER >= 1300