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

Unified Diff: gm/modecolorfilters.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/mipmap.cpp ('k') | gm/pathopsinverse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/modecolorfilters.cpp
diff --git a/gm/modecolorfilters.cpp b/gm/modecolorfilters.cpp
index 4fea1f15125f6f281c6f185d7b3ac8fca3cb69f7..f9a3a1042b94f84635279452c32305932e857b2e 100644
--- a/gm/modecolorfilters.cpp
+++ b/gm/modecolorfilters.cpp
@@ -24,7 +24,7 @@ static SkShader* make_color_shader(SkColor color) {
}
static SkShader* make_solid_shader() {
- return make_color_shader(SkColorSetARGB(0xFF, 0x40, 0x80, 0x20));
+ return make_color_shader(SkColorSetARGB(0xFF, 0x42, 0x82, 0x21));
}
static SkShader* make_transparent_shader() {
@@ -40,9 +40,9 @@ static SkShader* make_bg_shader(int checkSize) {
SkBitmap bmp;
bmp.allocN32Pixels(2 * checkSize, 2 * checkSize);
SkCanvas canvas(bmp);
- canvas.clear(0xFF800000);
+ canvas.clear(sk_tool_utils::color_to_565(0xFF800000));
SkPaint paint;
- paint.setColor(0xFF000080);
+ paint.setColor(sk_tool_utils::color_to_565(0xFF000080));
SkRect rect0 = SkRect::MakeXYWH(0, 0,
SkIntToScalar(checkSize), SkIntToScalar(checkSize));
SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(checkSize), SkIntToScalar(checkSize),
@@ -94,7 +94,7 @@ protected:
SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF),
SkColorSetARGB(0xFF, 0x00, 0x00, 0x00),
SkColorSetARGB(0x00, 0x00, 0x00, 0x00),
- SkColorSetARGB(0xFF, 0x10, 0x20, 0x40),
+ SkColorSetARGB(0xFF, 0x10, 0x20, 0x42),
SkColorSetARGB(0xA0, 0x20, 0x30, 0x90),
};
« no previous file with comments | « gm/mipmap.cpp ('k') | gm/pathopsinverse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698