don't adapt any gray colors to 565
Adapting gray to 565 will add a noticeable purple/green tint.
I'd rather only the 565 images in Gold were tainted with that.
Change-Id: Ib09e92b2f78c6de086345124e9eefeb31bbb5fa8
Reviewed-on: https://skia-review.googlesource.com/147422
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/gm/gradient_matrix.cpp b/gm/gradient_matrix.cpp
index 0a4f036..22cd316 100644
--- a/gm/gradient_matrix.cpp
+++ b/gm/gradient_matrix.cpp
@@ -18,7 +18,6 @@
#include "SkString.h"
#include "gm.h"
-#include "sk_tool_utils.h"
constexpr SkColor gColors[] = {
SK_ColorRED, SK_ColorYELLOW
@@ -109,8 +108,7 @@
canvas->restore();
}
-DEF_SIMPLE_GM_BG(gradient_matrix, canvas, 800, 800,
- sk_tool_utils::color_to_565(0xFFDDDDDD)) {
+DEF_SIMPLE_GM_BG(gradient_matrix, canvas, 800, 800, 0xFFDDDDDD) {
draw_gradients(canvas, &make_linear_gradient,
linearPts, SK_ARRAY_COUNT(linearPts));