From 52b346e34dc948aeea4ddede0a256bb673ff4a7e Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 19 Jan 2017 08:37:31 -0500 Subject: [PATCH] Make savelayer_* GM be 565 friendly Change-Id: I0594d9e8d2495643a404bddee61d7f01c7c0103c Reviewed-on: https://skia-review.googlesource.com/7263 Reviewed-by: Robert Phillips Commit-Queue: Robert Phillips --- gm/savelayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm/savelayer.cpp b/gm/savelayer.cpp index 8f2d5c8299..e35ccc9bc8 100644 --- a/gm/savelayer.cpp +++ b/gm/savelayer.cpp @@ -22,7 +22,7 @@ static void do_draw(SkCanvas* canvas) { SkRandom rand; for (int i = 0; i < 20; ++i) { - paint.setColor(rand.nextU() | (0xFF << 24)); + paint.setColor(sk_tool_utils::color_to_565(rand.nextU() | (0xFF << 24))); canvas->drawRect({ 15, 15, 290, 40 }, paint); canvas->translate(0, 30); }