Add color space xform fallback to GrMorphologyEffect
authorBrian Osman <brianosman@google.com>
Wed, 21 Dec 2016 18:36:02 +0000 (13:36 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 21 Dec 2016 19:30:37 +0000 (19:30 +0000)
commit320573f8fc1eddded223eea5b4dbbb6ff0b545ab
treed5a9e641679ef41e3bde0c660f249d91f01a3dab
parent20a7ecc49b9fe22b1a44629d717d1a51746773ef
Add color space xform fallback to GrMorphologyEffect

99% of the time (or maybe 100%?) morphology will trigger pad_image,
so the input texture will already be in the destimation color space.
If that doesn't happen, then just force the source to be converted,
which keeps the morphology effect and driver code simple.

BUG=skia:

Change-Id: I98876af4f9e9a5da031973213ed76349752ce68f
Reviewed-on: https://skia-review.googlesource.com/6388
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
src/effects/SkMorphologyImageFilter.cpp