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

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

Issue 2390443002: Unify GeometryPropertyTreeState and PropertyTreeState (Closed)
Patch Set: rebase x2 Created 4 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GeometryPropertyTreeState_h
6 #define GeometryPropertyTreeState_h
7
8 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
9 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
11 #include "wtf/HashFunctions.h"
12 #include "wtf/HashTraits.h"
13
14 namespace blink {
15
16 // Represents the combination of transform, clip and effect nodes for a particul ar coordinate space.
17 // See GeometryMapper. Scroll nodes (ScrollPaintPropertyNode) are not needed for mapping geometry
18 // and have been left off of this structure.
19 struct GeometryPropertyTreeState {
20 GeometryPropertyTreeState()
21 : GeometryPropertyTreeState(nullptr, nullptr, nullptr) {}
22
23 GeometryPropertyTreeState(const TransformPaintPropertyNode* transform,
24 const ClipPaintPropertyNode* clip,
25 const EffectPaintPropertyNode* effect)
26 : transform(transform), clip(clip), effect(effect) {}
27
28 RefPtr<const TransformPaintPropertyNode> transform;
29 RefPtr<const ClipPaintPropertyNode> clip;
30 RefPtr<const EffectPaintPropertyNode> effect;
31 };
32
33 } // namespace blink
34
35 #endif // GeometryPropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698