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/strokerect.cpp b/gm/strokerect.cpp
index 92b812c..7978f66 100644
--- a/gm/strokerect.cpp
+++ b/gm/strokerect.cpp
@@ -6,7 +6,6 @@
*/
#include "gm.h"
-#include "sk_tool_utils.h"
#include "SkCanvas.h"
#include "SkPath.h"
@@ -18,7 +17,7 @@
paint.setAntiAlias(true);
paint.setStyle(doFill ? SkPaint::kStrokeAndFill_Style : SkPaint::kStroke_Style);
- paint.setColor(sk_tool_utils::color_to_565(SK_ColorGRAY));
+ paint.setColor(SK_ColorGRAY);
paint.setStrokeWidth(STROKE_WIDTH);
paint.setStrokeJoin(join);
canvas->drawRect(rect, paint);