aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorFilter.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-06-29 11:37:15 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-29 16:09:37 +0000
commit9c1d7802284bf5a0e6fcf1a43e9218e21ce1a9e0 (patch)
treef8586d95657fb9a77717ba9c65fb647112fb30e8 /include/core/SkColorFilter.h
parent185a3798db64c64d47ef89a5fd3d4c5c70f1e621 (diff)
remove filterSpan from SkColorFilter
Bug: skia: Change-Id: Ie8a31ea8131c08d251a825622484342e3e174474 Reviewed-on: https://skia-review.googlesource.com/21207 Commit-Queue: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'include/core/SkColorFilter.h')
-rw-r--r--include/core/SkColorFilter.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
index d8876f3cc3..1033a7268e 100644
--- a/include/core/SkColorFilter.h
+++ b/include/core/SkColorFilter.h
@@ -63,15 +63,6 @@ public:
*/
virtual bool asComponentTable(SkBitmap* table) const;
- /** Called with a scanline of colors, as if there was a shader installed.
- The implementation writes out its filtered version into result[].
- Note: shader and result may be the same buffer.
- @param src array of colors, possibly generated by a shader
- @param count the number of entries in the src[] and result[] arrays
- @param result written by the filter
- */
- virtual void filterSpan(const SkPMColor src[], int count, SkPMColor result[]) const = 0;
-
void appendStages(SkRasterPipeline*, SkColorSpace*, SkArenaAlloc*, bool shaderIsOpaque) const;
enum Flags {
@@ -93,17 +84,7 @@ public:
*/
virtual sk_sp<SkColorFilter> makeComposed(sk_sp<SkColorFilter>) const { return nullptr; }
- /**
- * Apply this colorfilter to the specified SkColor. This routine handles
- * converting to SkPMColor, calling the filter, and then converting back
- * to SkColor. This method is not virtual, but will call filterSpan()
- * which is virtual.
- */
SkColor filterColor(SkColor) const;
-
- /**
- * Filters a single color.
- */
SkColor4f filterColor4f(const SkColor4f&) const;
/** Create a colorfilter that uses the specified color and mode.