| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 DeviceManager* device_manager_; // Not owned. | 99 DeviceManager* device_manager_; // Not owned. |
| 100 InputControllerEvdev* input_controller_; // Not owned. | 100 InputControllerEvdev* input_controller_; // Not owned. |
| 101 | 101 |
| 102 DrmNativeDisplayDelegate* delegate_ = nullptr; // Not owned. | 102 DrmNativeDisplayDelegate* delegate_ = nullptr; // Not owned. |
| 103 | 103 |
| 104 // File path for the primary graphics card which is opened by default in the | 104 // File path for the primary graphics card which is opened by default in the |
| 105 // GPU process. We'll avoid opening this in hotplug events since it will race | 105 // GPU process. We'll avoid opening this in hotplug events since it will race |
| 106 // with the GPU process trying to open it and aquire DRM master. | 106 // with the GPU process trying to open it and aquire DRM master. |
| 107 base::FilePath primary_graphics_card_path_; | 107 base::FilePath primary_graphics_card_path_; |
| 108 | 108 |
| 109 // File path for virtual gem (VGEM) device. | |
| 110 base::FilePath vgem_card_path_; | |
| 111 | |
| 112 // Keeps track if there is a dummy display. This happens on initialization | 109 // Keeps track if there is a dummy display. This happens on initialization |
| 113 // when there is no connection to the GPU to update the displays. | 110 // when there is no connection to the GPU to update the displays. |
| 114 bool has_dummy_display_ = false; | 111 bool has_dummy_display_ = false; |
| 115 | 112 |
| 116 std::vector<scoped_ptr<DrmDisplayHost>> displays_; | 113 std::vector<scoped_ptr<DrmDisplayHost>> displays_; |
| 117 | 114 |
| 118 GetDisplaysCallback get_displays_callback_; | 115 GetDisplaysCallback get_displays_callback_; |
| 119 | 116 |
| 120 bool display_externally_controlled_ = false; | 117 bool display_externally_controlled_ = false; |
| 121 bool display_control_change_pending_ = false; | 118 bool display_control_change_pending_ = false; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 140 scoped_ptr<DrmDeviceHandle> primary_drm_device_handle_; | 137 scoped_ptr<DrmDeviceHandle> primary_drm_device_handle_; |
| 141 | 138 |
| 142 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; | 139 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; |
| 143 | 140 |
| 144 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); | 141 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); |
| 145 }; | 142 }; |
| 146 | 143 |
| 147 } // namespace ui | 144 } // namespace ui |
| 148 | 145 |
| 149 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 146 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
| OLD | NEW |