blob: 79078354e9227c6d2fc54995c720ca026c9453e6 [file] [log] [blame]
Florin Malitab3418102020-10-15 18:10:29 -04001/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkSVGShape_DEFINED
9#define SkSVGShape_DEFINED
10
11#include "include/core/SkPath.h"
12#include "modules/svg/include/SkSVGTransformableNode.h"
13
14class SkSVGLengthContext;
15class SkPaint;
16
17class SkSVGShape : public SkSVGTransformableNode {
18public:
Florin Malitab3418102020-10-15 18:10:29 -040019 void appendChild(sk_sp<SkSVGNode>) override;
20
21protected:
22 SkSVGShape(SkSVGTag);
23
24 void onRender(const SkSVGRenderContext&) const final;
25
26 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
27 SkPathFillType) const = 0;
28
29private:
30 using INHERITED = SkSVGTransformableNode;
31};
32
33#endif // SkSVGShape_DEFINED