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_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // True if a display event is currently being processed on a worker thread. | 129 // True if a display event is currently being processed on a worker thread. |
130 bool task_pending_ = false; | 130 bool task_pending_ = false; |
131 | 131 |
132 // Keeps track of all the active DRM devices. | 132 // Keeps track of all the active DRM devices. |
133 std::set<base::FilePath> drm_devices_; | 133 std::set<base::FilePath> drm_devices_; |
134 | 134 |
135 // This is used to cache the primary DRM device until the channel is | 135 // This is used to cache the primary DRM device until the channel is |
136 // established. | 136 // established. |
137 scoped_ptr<DrmDeviceHandle> primary_drm_device_handle_; | 137 scoped_ptr<DrmDeviceHandle> primary_drm_device_handle_; |
| 138 base::ScopedFD primary_drm_device_file_; |
138 | 139 |
139 // Manages the VGEM device by itself and doesn't send it to GPU process. | 140 // Manages the VGEM device by itself and doesn't send it to GPU process. |
140 base::ScopedFD vgem_card_device_file_; | 141 base::ScopedFD vgem_card_device_file_; |
141 | 142 |
142 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; | 143 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); | 145 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); |
145 }; | 146 }; |
146 | 147 |
147 } // namespace ui | 148 } // namespace ui |
148 | 149 |
149 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 150 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
OLD | NEW |