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

Unified Diff: gm/bmpfilterqualityrepeat.cpp

Issue 1262703002: make tests portable by using 565 compatible colors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix dstreadshuffle text portable gm Created 5 years, 5 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 | « gm/blend.cpp ('k') | gm/colorcube.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bmpfilterqualityrepeat.cpp
diff --git a/gm/bmpfilterqualityrepeat.cpp b/gm/bmpfilterqualityrepeat.cpp
index 5c19f00aa3967a44980d48d39664d75a72ba0a83..dd7b901b003f57d0ad0a61b0c487d556904cb3c6 100644
--- a/gm/bmpfilterqualityrepeat.cpp
+++ b/gm/bmpfilterqualityrepeat.cpp
@@ -25,11 +25,11 @@ protected:
colorBmp.allocN32Pixels(20, 20, true);
colorBmp.eraseColor(0xFFFF0000);
canvas.drawBitmap(colorBmp, 0, 0);
- colorBmp.eraseColor(0xFF008200);
+ colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF008200));
canvas.drawBitmap(colorBmp, 20, 0);
- colorBmp.eraseColor(0xFFFF9000);
+ colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFFFF9000));
canvas.drawBitmap(colorBmp, 0, 20);
- colorBmp.eraseColor(0xFF2000FF);
+ colorBmp.eraseColor(sk_tool_utils::color_to_565(0xFF2000FF));
canvas.drawBitmap(colorBmp, 20, 20);
}
« no previous file with comments | « gm/blend.cpp ('k') | gm/colorcube.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698