8 #ifndef SkSGDraw_DEFINED
9 #define SkSGDraw_DEFINED
27 return (geo && paint) ?
sk_sp<Draw>(
new Draw(std::move(geo), std::move(paint))) :
nullptr;
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Concrete rendering node.
Definition: SkSGDraw.h:24
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
void onRender(SkCanvas *, const RenderContext *) const override
static sk_sp< Draw > Make(sk_sp< GeometryNode > geo, sk_sp< PaintNode > paint)
Definition: SkSGDraw.h:26
const RenderNode * onNodeAt(const SkPoint &) const override
Draw(sk_sp< GeometryNode >, sk_sp< PaintNode > paint)
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
friend class RenderNode
Definition: SkSGNode.h:93
Base class for nodes which can render to a canvas.
Definition: SkSGRenderNode.h:27
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
Definition: SkSGRenderNode.h:53