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

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

Issue 2621243002: Fix paint offset and clips in SPv2 (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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerTest.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 GeometryMapper_h 5 #ifndef GeometryMapper_h
6 #define GeometryMapper_h 6 #define GeometryMapper_h
7 7
8 #include "platform/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.h"
9 #include "platform/graphics/paint/PropertyTreeState.h" 9 #include "platform/graphics/paint/PropertyTreeState.h"
10 #include "platform/transforms/TransformationMatrix.h" 10 #include "platform/transforms/TransformationMatrix.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // PrecomputedDataForAncestor otherwise. 165 // PrecomputedDataForAncestor otherwise.
166 PrecomputedDataForAncestor& getPrecomputedDataForAncestor( 166 PrecomputedDataForAncestor& getPrecomputedDataForAncestor(
167 const TransformPaintPropertyNode*); 167 const TransformPaintPropertyNode*);
168 168
169 // Returns the least common ancestor in the transform tree. 169 // Returns the least common ancestor in the transform tree.
170 static const TransformPaintPropertyNode* leastCommonAncestor( 170 static const TransformPaintPropertyNode* leastCommonAncestor(
171 const TransformPaintPropertyNode*, 171 const TransformPaintPropertyNode*,
172 const TransformPaintPropertyNode*); 172 const TransformPaintPropertyNode*);
173 173
174 friend class GeometryMapperTest; 174 friend class GeometryMapperTest;
175 friend class PaintLayerClipperTest;
175 176
176 HashMap<const TransformPaintPropertyNode*, 177 HashMap<const TransformPaintPropertyNode*,
177 std::unique_ptr<PrecomputedDataForAncestor>> 178 std::unique_ptr<PrecomputedDataForAncestor>>
178 m_data; 179 m_data;
179 180
180 const TransformationMatrix m_identity; 181 const TransformationMatrix m_identity;
181 182
182 DISALLOW_COPY_AND_ASSIGN(GeometryMapper); 183 DISALLOW_COPY_AND_ASSIGN(GeometryMapper);
183 }; 184 };
184 185
185 } // namespace blink 186 } // namespace blink
186 187
187 #endif // GeometryMapper_h 188 #endif // GeometryMapper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698