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

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

Issue 2238853005: Use GeometryMapper in PaintInvalidator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@GeometryMapperMore
Patch Set: Rebase Created 4 years, 4 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 | « third_party/WebKit/Source/core/paint/SVGRootPainter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
9 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
8 #include "wtf/HashFunctions.h" 11 #include "wtf/HashFunctions.h"
9 #include "wtf/HashTraits.h" 12 #include "wtf/HashTraits.h"
10 13
11 namespace blink { 14 namespace blink {
12 15
13 class TransformPaintPropertyNode;
14 class ClipPaintPropertyNode;
15 class EffectPaintPropertyNode;
16
17 // 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.
18 // See GeometryMapper. 17 // See GeometryMapper.
19 struct PropertyTreeState { 18 struct PropertyTreeState {
20 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {} 19 PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {}
21 20
22 PropertyTreeState( 21 PropertyTreeState(
23 const TransformPaintPropertyNode* transform, 22 const TransformPaintPropertyNode* transform,
24 const ClipPaintPropertyNode* clip, 23 const ClipPaintPropertyNode* clip,
25 const EffectPaintPropertyNode* effect) 24 const EffectPaintPropertyNode* effect)
26 : transform(transform), clip(clip), effect(effect) {} 25 : transform(transform), clip(clip), effect(effect) {}
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 while (a != b) { 63 while (a != b) {
65 a = a->parent(); 64 a = a->parent();
66 b = b->parent(); 65 b = b->parent();
67 } 66 }
68 return a; 67 return a;
69 } 68 }
70 69
71 } // namespace blink 70 } // namespace blink
72 71
73 #endif // PropertyTreeState_h 72 #endif // PropertyTreeState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGRootPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698