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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 DrmDeviceManager* device_manager_; // Not owned. | 115 DrmDeviceManager* device_manager_; // Not owned. |
116 ScreenManager* screen_manager_; // Not owned. | 116 ScreenManager* screen_manager_; // Not owned. |
117 | 117 |
118 // The current bounds of the window. | 118 // The current bounds of the window. |
119 gfx::Rect bounds_; | 119 gfx::Rect bounds_; |
120 | 120 |
121 // The controller associated with the current window. This may be nullptr if | 121 // The controller associated with the current window. This may be nullptr if |
122 // the window isn't over an active display. | 122 // the window isn't over an active display. |
123 HardwareDisplayController* controller_ = nullptr; | 123 HardwareDisplayController* controller_ = nullptr; |
124 | 124 |
125 base::RepeatingTimer<DrmWindow> cursor_timer_; | 125 base::RepeatingTimer cursor_timer_; |
126 | 126 |
127 scoped_refptr<DrmBuffer> cursor_buffers_[2]; | 127 scoped_refptr<DrmBuffer> cursor_buffers_[2]; |
128 int cursor_frontbuffer_ = 0; | 128 int cursor_frontbuffer_ = 0; |
129 | 129 |
130 std::vector<SkBitmap> cursor_bitmaps_; | 130 std::vector<SkBitmap> cursor_bitmaps_; |
131 gfx::Point cursor_location_; | 131 gfx::Point cursor_location_; |
132 int cursor_frame_ = 0; | 132 int cursor_frame_ = 0; |
133 int cursor_frame_delay_ms_ = 0; | 133 int cursor_frame_delay_ms_ = 0; |
134 | 134 |
135 // Planes and flips currently being queued in the absence of hardware display | 135 // Planes and flips currently being queued in the absence of hardware display |
136 // controller. | 136 // controller. |
137 OverlayPlaneList pending_planes_; | 137 OverlayPlaneList pending_planes_; |
138 OverlayPlaneList last_submitted_planes_; | 138 OverlayPlaneList last_submitted_planes_; |
139 | 139 |
140 bool force_buffer_reallocation_ = false; | 140 bool force_buffer_reallocation_ = false; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(DrmWindow); | 142 DISALLOW_COPY_AND_ASSIGN(DrmWindow); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace ui | 145 } // namespace ui |
146 | 146 |
147 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ | 147 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_H_ |
OLD | NEW |