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

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
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // PrecomputedDataForAncestor otherwise. 153 // PrecomputedDataForAncestor otherwise.
154 PrecomputedDataForAncestor& getPrecomputedDataForAncestor( 154 PrecomputedDataForAncestor& getPrecomputedDataForAncestor(
155 const PropertyTreeState&); 155 const PropertyTreeState&);
156 156
157 // Returns the least common ancestor in the transform tree. 157 // Returns the least common ancestor in the transform tree.
158 static const TransformPaintPropertyNode* leastCommonAncestor( 158 static const TransformPaintPropertyNode* leastCommonAncestor(
159 const TransformPaintPropertyNode*, 159 const TransformPaintPropertyNode*,
160 const TransformPaintPropertyNode*); 160 const TransformPaintPropertyNode*);
161 161
162 friend class GeometryMapperTest; 162 friend class GeometryMapperTest;
163 friend class PaintLayerClipperTest;
163 164
164 HashMap<const TransformPaintPropertyNode*, 165 HashMap<const TransformPaintPropertyNode*,
165 std::unique_ptr<PrecomputedDataForAncestor>> 166 std::unique_ptr<PrecomputedDataForAncestor>>
166 m_data; 167 m_data;
167 168
168 const TransformationMatrix m_identity; 169 const TransformationMatrix m_identity;
169 170
170 DISALLOW_COPY_AND_ASSIGN(GeometryMapper); 171 DISALLOW_COPY_AND_ASSIGN(GeometryMapper);
171 }; 172 };
172 173
173 } // namespace blink 174 } // namespace blink
174 175
175 #endif // GeometryMapper_h 176 #endif // GeometryMapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698