Add ImageToColorSpace helper in SkImageFilter
authorBrian Osman <brianosman@google.com>
Wed, 28 Dec 2016 17:28:18 +0000 (12:28 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 29 Dec 2016 00:28:54 +0000 (00:28 +0000)
commite02d3caab823728d3106bcb1d4fbb674afc959fb
tree87f83848ddafe339f14c3371b8a91285d77493c0
parent7cf774573cc5bc7e588ed4489d0a4127e9edf0cc
Add ImageToColorSpace helper in SkImageFilter

Share this logic among a couple filters that need it. This also fixes a
bug that showed up in the morhpology GM for GPU color space configs.

BUG=skia:

Change-Id: Ic686b07aff80e58e14a86108703bfbb3cf524979
Reviewed-on: https://skia-review.googlesource.com/6475
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
include/core/SkImageFilter.h
src/core/SkImageFilter.cpp
src/effects/SkMatrixConvolutionImageFilter.cpp
src/effects/SkMorphologyImageFilter.cpp