зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
0da3719050
Коммит
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче