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

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

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PropertyTreeState_h 5 #ifndef PropertyTreeState_h
6 #define PropertyTreeState_h 6 #define PropertyTreeState_h
7 7
8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 void SetEffect(RefPtr<const EffectPaintPropertyNode> node) { 56 void SetEffect(RefPtr<const EffectPaintPropertyNode> node) {
57 effect_ = std::move(node); 57 effect_ = std::move(node);
58 } 58 }
59 59
60 static const PropertyTreeState& Root(); 60 static const PropertyTreeState& Root();
61 61
62 // Returns the compositor element id, if any, for this property state. If 62 // Returns the compositor element id, if any, for this property state. If
63 // neither the effect nor transform nodes have a compositor element id then a 63 // neither the effect nor transform nodes have a compositor element id then a
64 // default instance is returned. 64 // default instance is returned.
65 const CompositorElementId GetCompositorElementId( 65 CompositorElementId GetCompositorElementId(
66 const CompositorElementIdSet& element_ids) const; 66 const CompositorElementIdSet& element_ids) const;
67 67
68 enum InnermostNode { 68 enum InnermostNode {
69 kNone, // None means that all nodes are their root values 69 kNone, // None means that all nodes are their root values
70 kTransform, 70 kTransform,
71 kClip, 71 kClip,
72 kEffect, 72 kEffect,
73 }; 73 };
74 74
75 // There is always a well-defined order in which the transform, clip 75 // There is always a well-defined order in which the transform, clip
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 HashMap<const PropertyTreeNode*, String> node_to_debug_string_; 183 HashMap<const PropertyTreeNode*, String> node_to_debug_string_;
184 }; 184 };
185 185
186 #endif 186 #endif
187 187
188 } // namespace blink 188 } // namespace blink
189 189
190 #endif // PropertyTreeState_h 190 #endif // PropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698