Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: experimental/svg/model/SkSVGShape.h

Issue 2222793002: [SVGDom] Add <svg> viewBox support (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: typo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « experimental/svg/model/SkSVGSVG.cpp ('k') | experimental/svg/model/SkSVGShape.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkSVGShape_DEFINED 8 #ifndef SkSVGShape_DEFINED
9 #define SkSVGShape_DEFINED 9 #define SkSVGShape_DEFINED
10 10
11 #include "SkSVGTransformableNode.h" 11 #include "SkSVGTransformableNode.h"
12 12
13 class SkSVGLengthContext; 13 class SkSVGLengthContext;
14 class SkPaint; 14 class SkPaint;
15 15
16 class SkSVGShape : public SkSVGTransformableNode { 16 class SkSVGShape : public SkSVGTransformableNode {
17 public: 17 public:
18 virtual ~SkSVGShape() = default; 18 virtual ~SkSVGShape() = default;
19 19
20 void appendChild(sk_sp<SkSVGNode>) override; 20 void appendChild(sk_sp<SkSVGNode>) override;
21 21
22 protected: 22 protected:
23 SkSVGShape(SkSVGTag); 23 SkSVGShape(SkSVGTag);
24 24
25 void onRender(SkCanvas*, const SkSVGRenderContext&) const final; 25 void onRender(const SkSVGRenderContext&) const final;
26 26
27 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&) co nst = 0; 27 virtual void onDraw(SkCanvas*, const SkSVGLengthContext&, const SkPaint&) co nst = 0;
28 28
29 private: 29 private:
30 typedef SkSVGTransformableNode INHERITED; 30 typedef SkSVGTransformableNode INHERITED;
31 }; 31 };
32 32
33 #endif // SkSVGShape_DEFINED 33 #endif // SkSVGShape_DEFINED
OLDNEW
« no previous file with comments | « experimental/svg/model/SkSVGSVG.cpp ('k') | experimental/svg/model/SkSVGShape.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698