7d34dc7747
This reverts commit 3e7af41224
.
Change-Id: Id4f66b3956f4bdbe690db20fc478b7365ee89717
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256676
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
36 lines
798 B
C++
36 lines
798 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkSVGShape_DEFINED
|
|
#define SkSVGShape_DEFINED
|
|
|
|
#include "experimental/svg/model/SkSVGTransformableNode.h"
|
|
#include "include/core/SkPath.h"
|
|
|
|
class SkSVGLengthContext;
|
|
class SkPaint;
|
|
|
|
class SkSVGShape : public SkSVGTransformableNode {
|
|
public:
|
|
~SkSVGShape() override = default;
|
|
|
|
void appendChild(sk_sp<SkSVGNode>) override;
|
|
|
|
protected:
|
|
SkSVGShape(SkSVGTag);
|
|
|
|
void onRender(const SkSVGRenderContext&) const final;
|
|
|
|
virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&,
|
|
SkPathFillType) const = 0;
|
|
|
|
private:
|
|
typedef SkSVGTransformableNode INHERITED;
|
|
};
|
|
|
|
#endif // SkSVGShape_DEFINED
|