Index: gm/transparency.cpp |
diff --git a/gm/transparency.cpp b/gm/transparency.cpp |
index 1a6275e2a22a249da8d31defe06cc2d9672d1ef2..62c277a691c7fedef6c2ebc29206e71571229846 100644 |
--- a/gm/transparency.cpp |
+++ b/gm/transparency.cpp |
@@ -63,7 +63,8 @@ static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { |
* checkerboard pattern looks correct. |
*/ |
DEF_SIMPLE_GM(transparency_check, canvas, 1792, 1080) { |
- checkerboard(canvas, 0xFF999999, 0xFF666666, 8); |
+ checkerboard(canvas, sk_tool_utils::color_to_565(0xFF999999), |
+ sk_tool_utils::color_to_565(0xFF666666), 8); |
{ |
SkAutoCanvasRestore autoCanvasRestore(canvas, true); |
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(256, 9)); |