From 964dec3948721808491b21b4ff4ff41a466443ec Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 26 Jan 2017 09:32:33 -0500 Subject: Move SkGammaColorFilter to tools, limit to sRGB Similarly, limit GrGammaEffect to sRGB (and rename it). BUG=skia: Change-Id: I88feef11ab7040bca2fa4c2eed71923ded87a0d0 Reviewed-on: https://skia-review.googlesource.com/7375 Commit-Queue: Brian Osman Reviewed-by: Brian Salomon --- tools/sk_tool_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/sk_tool_utils.h') diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h index ffe8084f7f..e319411349 100644 --- a/tools/sk_tool_utils.h +++ b/tools/sk_tool_utils.h @@ -19,6 +19,7 @@ class SkBitmap; class SkCanvas; +class SkColorFilter; class SkPaint; class SkPath; class SkRRect; @@ -254,6 +255,11 @@ namespace sk_tool_utils { void copy_to_g8(SkBitmap* dst, const SkBitmap& src); +#if SK_SUPPORT_GPU + sk_sp MakeLinearToSRGBColorFilter(); + sk_sp MakeSRGBToLinearColorFilter(); +#endif + } // namespace sk_tool_utils #endif // sk_tool_utils_DEFINED -- cgit v1.2.3