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

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

Issue 2359603002: Revert of [SVGDom] Opacity optimization (Closed)
Patch Set: Created 4 years, 3 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/SkSVGContainer.cpp ('k') | experimental/svg/model/SkSVGNode.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 SkSVGNode_DEFINED 8 #ifndef SkSVGNode_DEFINED
9 #define SkSVGNode_DEFINED 9 #define SkSVGNode_DEFINED
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Implementations are expected to return true if rendering is to continue, or false if 62 // Implementations are expected to return true if rendering is to continue, or false if
63 // the node/subtree rendering is disabled. 63 // the node/subtree rendering is disabled.
64 virtual bool onPrepareToRender(SkSVGRenderContext*) const; 64 virtual bool onPrepareToRender(SkSVGRenderContext*) const;
65 65
66 virtual void onRender(const SkSVGRenderContext&) const = 0; 66 virtual void onRender(const SkSVGRenderContext&) const = 0;
67 67
68 virtual bool onAsPaint(const SkSVGRenderContext&, SkPaint*) const { return f alse; } 68 virtual bool onAsPaint(const SkSVGRenderContext&, SkPaint*) const { return f alse; }
69 69
70 virtual void onSetAttribute(SkSVGAttribute, const SkSVGValue&); 70 virtual void onSetAttribute(SkSVGAttribute, const SkSVGValue&);
71 71
72 virtual bool hasChildren() const { return false; }
73
74 private: 72 private:
75 SkSVGTag fTag; 73 SkSVGTag fTag;
76 74
77 // FIXME: this should be sparse 75 // FIXME: this should be sparse
78 SkSVGPresentationAttributes fPresentationAttributes; 76 SkSVGPresentationAttributes fPresentationAttributes;
79 77
80 typedef SkRefCnt INHERITED; 78 typedef SkRefCnt INHERITED;
81 }; 79 };
82 80
83 #endif // SkSVGNode_DEFINED 81 #endif // SkSVGNode_DEFINED
OLDNEW
« no previous file with comments | « experimental/svg/model/SkSVGContainer.cpp ('k') | experimental/svg/model/SkSVGNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698