diff options
author | reed <reed@chromium.org> | 2015-04-02 05:43:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-02 05:43:09 -0700 |
commit | c6e13d73426624275db18a39bc5cf5322bf612a8 (patch) | |
tree | 4d95bfb329258620db4d5e835b3a1dafb5bd0da2 /gm/bitmaprect.cpp | |
parent | d0d37cace08f12abf8d316e6949e947551d418e6 (diff) |
pass legal premul values to bitmap -- do we still need this GM?
BUG=skia:
Review URL: https://codereview.chromium.org/1052083004
Diffstat (limited to 'gm/bitmaprect.cpp')
-rw-r--r-- | gm/bitmaprect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/bitmaprect.cpp b/gm/bitmaprect.cpp index ca5b26d992..aa71f48eb0 100644 --- a/gm/bitmaprect.cpp +++ b/gm/bitmaprect.cpp @@ -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); } } } |