pass legal premul values to bitmap -- do we still need this GM?
BUG=skia: Review URL: https://codereview.chromium.org/1052083004
This commit is contained in:
parent
d0d37cace0
commit
c6e13d7342
@ -161,9 +161,9 @@ static void make_big_bitmap(SkBitmap* bitmap) {
|
||||
for (int x = 0; x < gXSize; ++x) {
|
||||
if (x <= gBorderWidth || x >= gXSize-gBorderWidth ||
|
||||
y <= gBorderWidth || y >= gYSize-gBorderWidth) {
|
||||
*bitmap->getAddr32(x, y) = 0x88FFFFFF;
|
||||
*bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FFFFFF);
|
||||
} else {
|
||||
*bitmap->getAddr32(x, y) = 0x88FF0000;
|
||||
*bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FF0000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user