OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class SkBitmap; | 21 class SkBitmap; |
22 | 22 |
23 namespace gfx { | 23 namespace gfx { |
24 class Point; | 24 class Point; |
25 class Rect; | 25 class Rect; |
26 } // namespace gfx | 26 } // namespace gfx |
27 | 27 |
28 namespace ui { | 28 namespace ui { |
29 | 29 |
30 class DrmBuffer; | 30 class DrmBuffer; |
| 31 class DrmDevice; |
31 class DrmDeviceManager; | 32 class DrmDeviceManager; |
32 class HardwareDisplayController; | 33 class HardwareDisplayController; |
33 struct OverlayCheck_Params; | 34 struct OverlayCheck_Params; |
34 class ScanoutBufferGenerator; | 35 class ScanoutBufferGenerator; |
35 class ScreenManager; | 36 class ScreenManager; |
36 | 37 |
37 // The GPU object representing a window. | 38 // The GPU object representing a window. |
38 // | 39 // |
39 // The main purpose of this object is to associate drawing surfaces with | 40 // The main purpose of this object is to associate drawing surfaces with |
40 // displays. A surface created with the same id as the window (from | 41 // displays. A surface created with the same id as the window (from |
(...skipping 19 matching lines...) Expand all Loading... |
60 // Returns the accelerated widget associated with the window. | 61 // Returns the accelerated widget associated with the window. |
61 gfx::AcceleratedWidget GetAcceleratedWidget(); | 62 gfx::AcceleratedWidget GetAcceleratedWidget(); |
62 | 63 |
63 // Returns the current controller the window is displaying on. Callers should | 64 // Returns the current controller the window is displaying on. Callers should |
64 // not cache the result as the controller may change as the window is moved. | 65 // not cache the result as the controller may change as the window is moved. |
65 HardwareDisplayController* GetController(); | 66 HardwareDisplayController* GetController(); |
66 | 67 |
67 void SetController(HardwareDisplayController* controller); | 68 void SetController(HardwareDisplayController* controller); |
68 | 69 |
69 // Called when the window is resized/moved. | 70 // Called when the window is resized/moved. |
70 void OnBoundsChanged(const gfx::Rect& bounds); | 71 void SetBounds(const gfx::Rect& bounds); |
71 | 72 |
72 // Update the HW cursor bitmap & move to specified location. If | 73 // Update the HW cursor bitmap & move to specified location. If |
73 // the bitmap is empty, the cursor is hidden. | 74 // the bitmap is empty, the cursor is hidden. |
74 void SetCursor(const std::vector<SkBitmap>& bitmaps, | 75 void SetCursor(const std::vector<SkBitmap>& bitmaps, |
75 const gfx::Point& location, | 76 const gfx::Point& location, |
76 int frame_delay_ms); | 77 int frame_delay_ms); |
77 | 78 |
78 // Update the HW cursor bitmap & move to specified location. If | 79 // Update the HW cursor bitmap & move to specified location. If |
79 // the bitmap is empty, the cursor is hidden. | 80 // the bitmap is empty, the cursor is hidden. |
80 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, | 81 void SetCursorWithoutAnimations(const std::vector<SkBitmap>& bitmaps, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 OverlayPlaneList last_submitted_planes_; | 132 OverlayPlaneList last_submitted_planes_; |
132 | 133 |
133 bool force_buffer_reallocation_ = false; | 134 bool force_buffer_reallocation_ = false; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(DrmWindow); | 136 DISALLOW_COPY_AND_ASSIGN(DrmWindow); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace ui | 139 } // namespace ui |
139 | 140 |
140 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 141 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
OLD | NEW |