| Index: include/core/SkColorFilter.h
|
| diff --git a/include/core/SkColorFilter.h b/include/core/SkColorFilter.h
|
| index bb628053a643527b72d876b8da88cd8302ee6f00..31a4365a3cae426787ed84f1bfdbee473955a3e1 100644
|
| --- a/include/core/SkColorFilter.h
|
| +++ b/include/core/SkColorFilter.h
|
| @@ -98,6 +98,15 @@ public:
|
| virtual uint32_t getFlags() const { return 0; }
|
|
|
| /**
|
| + * If this subclass can optimally createa composition with the inner filter, return it as
|
| + * a new filter (which the caller must unref() when it is done). If no such optimization
|
| + * is known, return NULL.
|
| + *
|
| + * e.g. result(color) == this_filter(inner(color))
|
| + */
|
| + virtual SkColorFilter* newComposed(const SkColorFilter* /*inner*/) const { return NULL; }
|
| +
|
| + /**
|
| * 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()
|
|
|