| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |