blob: 1f3c4555c325fcc0a492f6ebbdf29cf8feadb5c1 [file] [log] [blame]
fmalitabffc2562016-08-03 10:21:11 -07001/*
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 "SkSVGTransformableNode.h"
12
13class SkSVGLengthContext;
14class SkPaint;
15
16class SkSVGShape : public SkSVGTransformableNode {
17public:
18 virtual ~SkSVGShape() = default;
19
20 void appendChild(sk_sp<SkSVGNode>) override;
21
22protected:
23 SkSVGShape(SkSVGTag);
24
fmalita397a5172016-08-08 11:38:55 -070025 void onRender(const SkSVGRenderContext&) const final;
fmalitabffc2562016-08-03 10:21:11 -070026
27 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&) const = 0;
28
29private:
30 typedef SkSVGTransformableNode INHERITED;
31};
32
33#endif // SkSVGShape_DEFINED