9 #ifndef SkBlurDrawLooper_DEFINED
10 #define SkBlurDrawLooper_DEFINED
12 #include "SkDrawLooper.h"
26 kNone_BlurFlag = 0x00,
31 kIgnoreTransform_BlurFlag = 0x01,
32 kOverrideColor_BlurFlag = 0x02,
33 kHighQuality_BlurFlag = 0x04,
39 uint32_t flags = kNone_BlurFlag) {
42 #ifdef SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR
44 uint32_t flags = kNone_BlurFlag) {
45 return Make(color, sigma, dx, dy, flags).release();
53 SK_TO_STRING_OVERRIDE()
62 bool asABlurShadow(BlurShadowRec*) const override;
67 SkScalar fDx, fDy, fSigma;
88 void init(SkScalar sigma, SkScalar dx, SkScalar dy,
SkColor color, uint32_t flags);
A Canvas encapsulates all of the state about drawing into a device (bitmap).
Definition: SkCanvas.h:58
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:29
This class draws a shadow of the object (possibly offset), and then draws the original object in its ...
Definition: SkBlurDrawLooper.h:23
Definition: SkBlurDrawLooper.h:77
The SkPaint class holds the style and color information about how to draw geometries, text and bitmaps.
Definition: SkPaint.h:46
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
BlurFlags
Definition: SkBlurDrawLooper.h:25
SkMaskFilter is the base class for object that perform transformations on an alpha-channel mask befor...
Definition: SkMaskFilter.h:44
Holds state during a draw.
Definition: SkDrawLooper.h:39
virtual Context * createContext(SkCanvas *, void *storage) const =0
Called right before something is being drawn.
uint32_t SkColor
32 bit ARGB color value, not premultiplied.
Definition: SkColor.h:28
size_t contextSize() const override
Returns the number of bytes needed to store subclasses of Context (belonging to the corresponding SkD...
Definition: SkBlurDrawLooper.h:51
Subclasses of SkDrawLooper can be attached to a SkPaint.
Definition: SkDrawLooper.h:31
Definition: SkWriteBuffer.h:26
Types and macros for colors.