| OLD | NEW |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const TransformationMatrix& localToAncestorMatrixInternal( | 161 const TransformationMatrix& localToAncestorMatrixInternal( |
| 162 const TransformPaintPropertyNode* localTransformNode, | 162 const TransformPaintPropertyNode* localTransformNode, |
| 163 const TransformPaintPropertyNode* ancestorTransformNode, | 163 const TransformPaintPropertyNode* ancestorTransformNode, |
| 164 bool& success); | 164 bool& success); |
| 165 | 165 |
| 166 FloatRect localToAncestorClipRectInternal( | 166 FloatRect localToAncestorClipRectInternal( |
| 167 const PropertyTreeState& localTransformState, | 167 const PropertyTreeState& localTransformState, |
| 168 const PropertyTreeState& ancestorState, | 168 const PropertyTreeState& ancestorState, |
| 169 bool& success); | 169 bool& success); |
| 170 | 170 |
| 171 FloatRect slowLocalToAncestorVisualRectWithEffects( |
| 172 const FloatRect&, |
| 173 const PropertyTreeState& localState, |
| 174 const PropertyTreeState& ancestorState, |
| 175 bool& success); |
| 176 |
| 171 // Returns the precomputed data if already set, or adds and memoizes a new | 177 // Returns the precomputed data if already set, or adds and memoizes a new |
| 172 // PrecomputedDataForAncestor otherwise. | 178 // PrecomputedDataForAncestor otherwise. |
| 173 PrecomputedDataForAncestor& getPrecomputedDataForAncestor( | 179 PrecomputedDataForAncestor& getPrecomputedDataForAncestor( |
| 174 const TransformPaintPropertyNode*); | 180 const TransformPaintPropertyNode*); |
| 175 | 181 |
| 176 friend class GeometryMapperTest; | 182 friend class GeometryMapperTest; |
| 177 friend class PaintLayerClipperTest; | 183 friend class PaintLayerClipperTest; |
| 178 | 184 |
| 179 HashMap<const TransformPaintPropertyNode*, | 185 HashMap<const TransformPaintPropertyNode*, |
| 180 std::unique_ptr<PrecomputedDataForAncestor>> | 186 std::unique_ptr<PrecomputedDataForAncestor>> |
| 181 m_data; | 187 m_data; |
| 182 | 188 |
| 183 const TransformationMatrix m_identity; | 189 const TransformationMatrix m_identity; |
| 184 | 190 |
| 185 DISALLOW_COPY_AND_ASSIGN(GeometryMapper); | 191 DISALLOW_COPY_AND_ASSIGN(GeometryMapper); |
| 186 }; | 192 }; |
| 187 | 193 |
| 188 } // namespace blink | 194 } // namespace blink |
| 189 | 195 |
| 190 #endif // GeometryMapper_h | 196 #endif // GeometryMapper_h |
| OLD | NEW |