diff options
author | Mike Reed <reed@google.com> | 2017-05-31 15:03:02 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-31 19:54:05 +0000 |
commit | 25f3805efa465bc3f804f192fe1ee64450f01d7c (patch) | |
tree | fd32acec7e98cc4793d7488bbb89f582b5770de6 /src/shaders | |
parent | d696df74d4b2d70fb7b9078c6092d5eb1858d03d (diff) |
slant colorfilter away from filterSpan4f
rename to make it easy to delete any impl that also had onAppendStages...
i.e. rename to make it clear that it is just an impl trick for rasterpipeline.
Bug: skia:
Change-Id: If3c3b2811eff12d399cdf7a77552c01e72c06996
Reviewed-on: https://skia-review.googlesource.com/18234
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/shaders')
-rw-r--r-- | src/shaders/SkColorFilterShader.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/shaders/SkColorFilterShader.cpp b/src/shaders/SkColorFilterShader.cpp index 9803d6ca7b..94cc99e9df 100644 --- a/src/shaders/SkColorFilterShader.cpp +++ b/src/shaders/SkColorFilterShader.cpp @@ -94,11 +94,9 @@ void SkColorFilterShader::FilterShaderContext::shadeSpan(int x, int y, SkPMColor } void SkColorFilterShader::FilterShaderContext::shadeSpan4f(int x, int y, SkPM4f result[], - int count) { - const SkColorFilterShader& filterShader = static_cast<const SkColorFilterShader&>(fShader); - - fShaderContext->shadeSpan4f(x, y, result, count); - filterShader.fFilter->filterSpan4f(result, count, result); + int count) { + // Should never get here, as shadeSpan4f should only be called if stages fails + SkASSERT(false); } #if SK_SUPPORT_GPU |