8 #ifndef SkLayerRasterizer_DEFINED
9 #define SkLayerRasterizer_DEFINED
11 #include "SkRasterizer.h"
26 void addLayer(
const SkPaint& paint) {
27 this->addLayer(paint, 0, 0);
36 void addLayer(
const SkPaint& paint, SkScalar dx, SkScalar dy);
61 #ifdef SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR
63 return this->detach().
release();
66 return this->snapshot().
release();
78 SkLayerRasterizer(
SkDeque* layers);
82 virtual
bool onRasterize(const
SkPath& path, const
SkMatrix& matrix,
89 static
SkDeque* ReadLayers(SkReadBuffer& buffer);
91 friend class LayerRasterizerTester;
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:27
Definition: SkLayerRasterizer.h:21
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:26
Definition: SkRefCnt.h:135
The SkPaint class holds the style and color information about how to draw geometries, text and bitmaps.
Definition: SkPaint.h:46
SkMask is used to describe alpha bitmaps, either 1bit, 8bit, or the 3-channel 3D format.
Definition: SkMask.h:19
Definition: SkLayerRasterizer.h:17
Definition: SkRasterizer.h:21
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:258
Definition: SkWriteBuffer.h:26
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20