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:
reed 2015-04-02 05:43:09 -07:00 committed by Commit bot
parent d0d37cace0
commit c6e13d7342

View File

@ -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);
}
}
}