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 <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 scoped_refptr<base::SingleThreadTaskRunner> send_runner, | 63 scoped_refptr<base::SingleThreadTaskRunner> send_runner, |
64 const base::Callback<void(IPC::Message*)>& send_callback) override; | 64 const base::Callback<void(IPC::Message*)>& send_callback) override; |
65 void OnChannelDestroyed(int host_id) override; | 65 void OnChannelDestroyed(int host_id) override; |
66 | 66 |
67 // IPC::Listener overrides: | 67 // IPC::Listener overrides: |
68 bool OnMessageReceived(const IPC::Message& message) override; | 68 bool OnMessageReceived(const IPC::Message& message) override; |
69 | 69 |
70 private: | 70 private: |
71 struct DisplayEvent { | 71 struct DisplayEvent { |
72 DisplayEvent(DeviceEvent::ActionType action_type, | 72 DisplayEvent(DeviceEvent::ActionType action_type, |
73 const base::FilePath& path) | 73 const base::FilePath& path, |
74 : action_type(action_type), path(path) {} | 74 bool is_vgem) |
| 75 : action_type(action_type), path(path), is_vgem(is_vgem) {} |
75 | 76 |
76 DeviceEvent::ActionType action_type; | 77 DeviceEvent::ActionType action_type; |
77 base::FilePath path; | 78 base::FilePath path; |
| 79 bool is_vgem; |
78 }; | 80 }; |
79 | 81 |
80 void OnUpdateNativeDisplays( | 82 void OnUpdateNativeDisplays( |
81 const std::vector<DisplaySnapshot_Params>& displays); | 83 const std::vector<DisplaySnapshot_Params>& displays); |
82 void OnDisplayConfigured(int64_t display_id, bool status); | 84 void OnDisplayConfigured(int64_t display_id, bool status); |
83 | 85 |
84 void ProcessEvent(); | 86 void ProcessEvent(); |
85 | 87 |
86 // Called as a result of finishing to process the display hotplug event. These | 88 // Called as a result of finishing to process the display hotplug event. These |
87 // are responsible for dequing the event and scheduling the next event. | 89 // are responsible for dequing the event and scheduling the next event. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 drm_devices_; | 138 drm_devices_; |
137 | 139 |
138 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; | 140 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; |
139 | 141 |
140 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); | 142 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); |
141 }; | 143 }; |
142 | 144 |
143 } // namespace ui | 145 } // namespace ui |
144 | 146 |
145 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 147 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
OLD | NEW |