Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: gm/bitmaprect.cpp

Issue 1052083004: pass legal premul values to bitmap -- do we still need this GM? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmaprect.cpp
diff --git a/gm/bitmaprect.cpp b/gm/bitmaprect.cpp
index ca5b26d9927519b994333060017aa2878281fb05..aa71f48eb09ae115f82b0388ff40bcd83f424086 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);
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698