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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h

Issue 2632823002: SPv2: Paint SVG images and self-contained recorded pictures with their own trees. (Closed)
Patch Set: none Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EffectPaintPropertyNode_h 5 #ifndef EffectPaintPropertyNode_h
6 #define EffectPaintPropertyNode_h 6 #define EffectPaintPropertyNode_h
7 7
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/graphics/CompositorElementId.h" 10 #include "platform/graphics/CompositorElementId.h"
(...skipping 10 matching lines...) Expand all
21 namespace blink { 21 namespace blink {
22 22
23 // Effect nodes are abstraction of isolated groups, along with optional effects 23 // Effect nodes are abstraction of isolated groups, along with optional effects
24 // that can be applied to the composited output of the group. 24 // that can be applied to the composited output of the group.
25 // 25 //
26 // The effect tree is rooted at a node with no parent. This root node should 26 // The effect tree is rooted at a node with no parent. This root node should
27 // not be modified. 27 // not be modified.
28 class PLATFORM_EXPORT EffectPaintPropertyNode 28 class PLATFORM_EXPORT EffectPaintPropertyNode
29 : public RefCounted<EffectPaintPropertyNode> { 29 : public RefCounted<EffectPaintPropertyNode> {
30 public: 30 public:
31 // This node is really a sentinel, and does not represent a real effect.
31 static EffectPaintPropertyNode* root(); 32 static EffectPaintPropertyNode* root();
32 33
33 static PassRefPtr<EffectPaintPropertyNode> create( 34 static PassRefPtr<EffectPaintPropertyNode> create(
34 PassRefPtr<const EffectPaintPropertyNode> parent, 35 PassRefPtr<const EffectPaintPropertyNode> parent,
35 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, 36 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace,
36 PassRefPtr<const ClipPaintPropertyNode> outputClip, 37 PassRefPtr<const ClipPaintPropertyNode> outputClip,
37 CompositorFilterOperations filter, 38 CompositorFilterOperations filter,
38 float opacity, 39 float opacity,
39 SkBlendMode blendMode, 40 SkBlendMode blendMode,
40 CompositingReasons directCompositingReasons = CompositingReasonNone, 41 CompositingReasons directCompositingReasons = CompositingReasonNone,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 CompositorElementId m_compositorElementId; 164 CompositorElementId m_compositorElementId;
164 }; 165 };
165 166
166 // Redeclared here to avoid ODR issues. 167 // Redeclared here to avoid ODR issues.
167 // See platform/testing/PaintPrinters.h. 168 // See platform/testing/PaintPrinters.h.
168 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); 169 void PrintTo(const EffectPaintPropertyNode&, std::ostream*);
169 170
170 } // namespace blink 171 } // namespace blink
171 172
172 #endif // EffectPaintPropertyNode_h 173 #endif // EffectPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698