Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 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 | |
| 13 class SkSVGLengthContext; | |
| 14 class SkPaint; | |
| 15 | |
| 16 class SkSVGShape : public SkSVGTransformableNode { | |
| 17 public: | |
| 18 virtual ~SkSVGShape() = default; | |
| 19 | |
|
robertphillips
2016/08/02 22:25:56
Do we want to assert that this appendChild is neve
f(malita)
2016/08/03 16:50:52
Hmm, since this would be a public API it seems a b
| |
| 20 void appendChild(sk_sp<SkSVGNode>) override { } | |
| 21 | |
| 22 protected: | |
| 23 SkSVGShape(SkSVGTag); | |
| 24 | |
| 25 void onRender(SkCanvas*, const SkSVGRenderContext&) const final; | |
| 26 | |
| 27 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&) co nst = 0; | |
| 28 | |
| 29 private: | |
| 30 typedef SkSVGTransformableNode INHERITED; | |
| 31 }; | |
| 32 | |
| 33 #endif // SkSVGShape_DEFINED | |
| OLD | NEW |