OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_DIP_UTIL_H_ | 5 #ifndef UI_COMPOSITOR_DIP_UTIL_H_ |
6 #define UI_COMPOSITOR_DIP_UTIL_H_ | 6 #define UI_COMPOSITOR_DIP_UTIL_H_ |
7 | 7 |
8 #include "ui/compositor/compositor_export.h" | 8 #include "ui/compositor/compositor_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/gfx/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Point; | 13 class Point; |
14 class Size; | 14 class Size; |
15 class Rect; | 15 class Rect; |
16 } // namespace gfx | 16 } // namespace gfx |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 class Layer; | 19 class Layer; |
20 | 20 |
(...skipping 26 matching lines...) Expand all Loading... |
47 // Snaps the |layer_to_snap| to the physical pixel boundary. | 47 // Snaps the |layer_to_snap| to the physical pixel boundary. |
48 // |snapped_layer| is a reference layer that should also be | 48 // |snapped_layer| is a reference layer that should also be |
49 // snapped at the pysical pixel boundary. | 49 // snapped at the pysical pixel boundary. |
50 COMPOSITOR_EXPORT void SnapLayerToPhysicalPixelBoundary( | 50 COMPOSITOR_EXPORT void SnapLayerToPhysicalPixelBoundary( |
51 ui::Layer* snapped_layer, | 51 ui::Layer* snapped_layer, |
52 ui::Layer* layer_to_snap); | 52 ui::Layer* layer_to_snap); |
53 | 53 |
54 } // namespace ui | 54 } // namespace ui |
55 | 55 |
56 #endif // UI_COMPOSITOR_DIP_UTIL_H_ | 56 #endif // UI_COMPOSITOR_DIP_UTIL_H_ |
OLD | NEW |