From be7f768a357aefb39c42d24b81b24d647bb6ab70 Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 15 Jun 2015 05:09:59 -0700 Subject: make gm background colors 565 compatible Change a batch of GM tests to convert their background color so that it is representable in 8888 and 565. Enable portable text in those same tests to minimize platform differences. In a couple of bitmap tests, use portable typefaces instead of choosing 'Times' which may or may not be available on the platform. R=borenet@google.com Review URL: https://codereview.chromium.org/1176243006 --- gm/emptypath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gm/emptypath.cpp') diff --git a/gm/emptypath.cpp b/gm/emptypath.cpp index b3f8016453..64eb28694f 100644 --- a/gm/emptypath.cpp +++ b/gm/emptypath.cpp @@ -92,7 +92,7 @@ protected: SkColor color = rand.nextU(); color = 0xff000000 | color; // force solid - sk_tool_utils::color_to_565(&color); + color = sk_tool_utils::color_to_565(color); this->drawEmpty(canvas, color, rect, gStyles[style].fStyle, gFills[fill].fFill); -- cgit v1.2.3