8 #ifndef SkLumaColorFilter_DEFINED
9 #define SkLumaColorFilter_DEFINED
11 #include "SkColorFilter.h"
14 class SkRasterPipeline;
37 SK_TO_STRING_OVERRIDE()
45 void onAppendStages(SkRasterPipeline*,
SkColorSpace*, SkArenaAlloc*,
46 bool shaderIsOpaque)
const override;
virtual sk_sp< GrFragmentProcessor > asFragmentProcessor(GrContext *, SkColorSpace *dstColorSpace) const
A subclass may implement this factory function to work with the GPU backend.
Definition: SkColorSpace.h:59
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:32
virtual void filterSpan(const SkPMColor src[], int count, SkPMColor result[]) const =0
Called with a scanline of colors, as if there was a shader installed.
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
Definition: GrContext.h:47
uint32_t SkPMColor
32 bit ARGB color value, premultiplied.
Definition: SkColor.h:161
Luminance-to-alpha color filter, as defined in http://www.w3.org/TR/SVG/masking.html#Masking http://w...
Definition: SkLumaColorFilter.h:27
Definition: SkWriteBuffer.h:27
virtual void flatten(SkWriteBuffer &) const
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
Definition: SkFlattenable.h:117