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
This commit is contained in:
parent
0da3719050
commit
57e080c1eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user