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

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

Issue 2299533002: WIP: Construct SPV2's scroll paint property tree (Closed)
Patch Set: Add more paint property builder tests, update comments/documentation" 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
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"
11 #include "wtf/HashFunctions.h" 11 #include "wtf/HashFunctions.h"
12 #include "wtf/HashTraits.h" 12 #include "wtf/HashTraits.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // Represents the combination of transform, clip and effect nodes for a particul ar coordinate space. 16 // Represents the combination of transform, clip and effect nodes for a particul ar coordinate space.
17 // See GeometryMapper. 17 // See GeometryMapper.
18 // Scroll nodes (ScrollPaintPropertyNode) are not needed for mapping geometry an d have been left off
19 // of this structure.
20 // TODO(pdr): Rename this GeometryPropertyTreeState.
18 struct PropertyTreeState { 21 struct PropertyTreeState {
19 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {} 22 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {}
20 23
21 PropertyTreeState( 24 PropertyTreeState(
22 const TransformPaintPropertyNode* transform, 25 const TransformPaintPropertyNode* transform,
23 const ClipPaintPropertyNode* clip, 26 const ClipPaintPropertyNode* clip,
24 const EffectPaintPropertyNode* effect) 27 const EffectPaintPropertyNode* effect)
25 : transform(transform), clip(clip), effect(effect) {} 28 : transform(transform), clip(clip), effect(effect) {}
26 29
27 RefPtr<const TransformPaintPropertyNode> transform; 30 RefPtr<const TransformPaintPropertyNode> transform;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 while (a != b) { 66 while (a != b) {
64 a = a->parent(); 67 a = a->parent();
65 b = b->parent(); 68 b = b->parent();
66 } 69 }
67 return a; 70 return a;
68 } 71 }
69 72
70 } // namespace blink 73 } // namespace blink
71 74
72 #endif // PropertyTreeState_h 75 #endif // PropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698