Add ImageToColorSpace helper in SkImageFilter
authorBrian Osman <brianosman@google.com>
Thu, 29 Dec 2016 14:18:20 +0000 (09:18 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 29 Dec 2016 18:35:44 +0000 (18:35 +0000)
commit615d66d1aed8f0b6510d58658e639b69c4d73b35
treecbbf32051eba73fadf7124f403c3777bc2d7aca0
parent85ff84821d5f6c8d48f2af12bdffdd3b5f8baf2c
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.

Re-land of https://skia-review.googlesource.com/c/6475/

BUG=skia:

Change-Id: If7b8d892cf89fa030bae68bdd3c03118f290f032
Reviewed-on: https://skia-review.googlesource.com/6484
Reviewed-by: Brian Osman <brianosman@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