8 #ifndef SkColorCubeFilter_DEFINED
9 #define SkColorCubeFilter_DEFINED
11 #include "SkColorFilter.h"
13 #include "../private/SkOnce.h"
14 #include "../private/SkTemplates.h"
25 #ifdef SK_SUPPORT_LEGACY_COLORFILTER_PTR
36 SK_TO_STRING_OVERRIDE()
50 void getProcessingLuts(
const int* (*colorToIndex)[2],
51 const SkScalar* (*colorToFactors)[2],
52 const SkScalar** colorToScalar);
54 int cubeDimension()
const {
return fCubeDimension; }
59 int* fColorToIndex[2];
60 SkScalar* fColorToFactors[2];
61 SkScalar* fColorToScalar;
63 SkAutoTMalloc<uint8_t> fLutStorage;
65 const int fCubeDimension;
Definition: SkColorCubeFilter.h:16
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:29
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.
The cache is initialized on-demand when getProcessingLuts is called.
Definition: SkColorCubeFilter.h:46
SkData holds an immutable data buffer.
Definition: SkData.h:22
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
virtual uint32_t getFlags() const
Returns the flags for this filter.
Definition: SkColorFilter.h:84
Definition: GrContext.h:48
uint32_t SkPMColor
32 bit ARGB color value, premultiplied.
Definition: SkColor.h:147
Definition: SkWriteBuffer.h:26
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
virtual sk_sp< GrFragmentProcessor > asFragmentProcessor(GrContext *) const
A subclass may implement this factory function to work with the GPU backend.