8 #ifndef SkLayerDrawLooper_DEFINED
9 #define SkLayerDrawLooper_DEFINED
11 #include "SkDrawLooper.h"
14 #include "SkXfermode.h"
29 kTextSkewX_Bit = 1 << 1,
30 kPathEffect_Bit = 1 << 2,
31 kMaskFilter_Bit = 1 << 3,
33 kColorFilter_Bit = 1 << 5,
34 kXfermode_Bit = 1 << 6,
42 kEntirePaint_Bits = -1
45 typedef int32_t BitFlags;
78 bool asABlurShadow(BlurShadowRec* rec)
const override;
80 SK_TO_STRING_OVERRIDE()
82 Factory getFactory()
const override {
return CreateProc; }
131 void addLayer(SkScalar dx, SkScalar dy);
146 #ifdef SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR
A Canvas encapsulates all of the state about drawing into a device (bitmap).
Definition: SkCanvas.h:58
Definition: SkLayerDrawLooper.h:116
size_t contextSize() const override
Returns the number of bytes needed to store subclasses of Context (belonging to the corresponding SkD...
Definition: SkLayerDrawLooper.h:76
Mode
List of predefined xfermodes.
Definition: SkXfermode.h:71
Definition: SkPoint.h:156
Definition: SkLayerDrawLooper.h:16
The SkPaint class holds the style and color information about how to draw geometries, text and bitmaps.
Definition: SkPaint.h:46
Bits
Bits specifies which aspects of the layer's paint should replace the corresponding aspects on the dra...
Definition: SkLayerDrawLooper.h:27
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:258
Definition: SkLayerDrawLooper.h:100
Info for how to apply the layer's paint and offset.
Definition: SkLayerDrawLooper.h:58
Holds state during a draw.
Definition: SkDrawLooper.h:39
void addLayer()
This layer will with the original paint and no offset.
Definition: SkLayerDrawLooper.h:136
Subclasses of SkDrawLooper can be attached to a SkPaint.
Definition: SkDrawLooper.h:31
Definition: SkWriteBuffer.h:26
bool fPostTranslate
applies to fOffset
Definition: SkLayerDrawLooper.h:62
Definition: SkLayerDrawLooper.h:91