| 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/graphics/paint/FloatClipRect.h" | 8 #include "platform/graphics/paint/FloatClipRect.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" |
| 11 #include "wtf/HashMap.h" | 11 #include "platform/wtf/HashMap.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 // GeometryMapper is a helper class for fast computations of transformed and | 15 // GeometryMapper is a helper class for fast computations of transformed and |
| 16 // visual rects in different PropertyTreeStates. The design document has a | 16 // visual rects in different PropertyTreeStates. The design document has a |
| 17 // number of details on use cases, algorithmic definitions, and running times. | 17 // number of details on use cases, algorithmic definitions, and running times. |
| 18 // | 18 // |
| 19 // NOTE: A GeometryMapper object is only valid for property trees that do not | 19 // NOTE: A GeometryMapper object is only valid for property trees that do not |
| 20 // change. If any mutation occurs, a new GeometryMapper object must be allocated | 20 // change. If any mutation occurs, a new GeometryMapper object must be allocated |
| 21 // corresponding to the new state. | 21 // corresponding to the new state. |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 static const FloatClipRect& infiniteClip(); | 190 static const FloatClipRect& infiniteClip(); |
| 191 static FloatClipRect& tempRect(); | 191 static FloatClipRect& tempRect(); |
| 192 | 192 |
| 193 friend class GeometryMapperTest; | 193 friend class GeometryMapperTest; |
| 194 friend class PaintLayerClipperTest; | 194 friend class PaintLayerClipperTest; |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace blink | 197 } // namespace blink |
| 198 | 198 |
| 199 #endif // GeometryMapper_h | 199 #endif // GeometryMapper_h |
| OLD | NEW |