| 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 |
| 11 #include "base/file_descriptor_posix.h" |
| 11 #include "base/files/scoped_file.h" | 12 #include "base/files/scoped_file.h" |
| 12 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "ui/display/types/native_display_delegate.h" | 15 #include "ui/display/types/native_display_delegate.h" |
| 15 #include "ui/events/ozone/device/device_event.h" | 16 #include "ui/events/ozone/device/device_event.h" |
| 16 #include "ui/events/ozone/device/device_event_observer.h" | 17 #include "ui/events/ozone/device/device_event_observer.h" |
| 17 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 18 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| 18 #include "ui/ozone/public/gpu_platform_support_host.h" | 19 #include "ui/ozone/public/gpu_platform_support_host.h" |
| 19 | 20 |
| 20 namespace ui { | 21 namespace ui { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 37 | 38 |
| 38 DrmDisplayHost* GetDisplay(int64_t display_id); | 39 DrmDisplayHost* GetDisplay(int64_t display_id); |
| 39 | 40 |
| 40 void AddDelegate(DrmNativeDisplayDelegate* delegate); | 41 void AddDelegate(DrmNativeDisplayDelegate* delegate); |
| 41 void RemoveDelegate(DrmNativeDisplayDelegate* delegate); | 42 void RemoveDelegate(DrmNativeDisplayDelegate* delegate); |
| 42 | 43 |
| 43 void TakeDisplayControl(const DisplayControlCallback& callback); | 44 void TakeDisplayControl(const DisplayControlCallback& callback); |
| 44 void RelinquishDisplayControl(const DisplayControlCallback& callback); | 45 void RelinquishDisplayControl(const DisplayControlCallback& callback); |
| 45 void UpdateDisplays(const GetDisplaysCallback& callback); | 46 void UpdateDisplays(const GetDisplaysCallback& callback); |
| 46 | 47 |
| 48 base::FileDescriptor GetVgemFd(); |
| 49 |
| 47 // DeviceEventObserver overrides: | 50 // DeviceEventObserver overrides: |
| 48 void OnDeviceEvent(const DeviceEvent& event) override; | 51 void OnDeviceEvent(const DeviceEvent& event) override; |
| 49 | 52 |
| 50 // GpuPlatformSupportHost: | 53 // GpuPlatformSupportHost: |
| 51 void OnChannelEstablished( | 54 void OnChannelEstablished( |
| 52 int host_id, | 55 int host_id, |
| 53 scoped_refptr<base::SingleThreadTaskRunner> send_runner, | 56 scoped_refptr<base::SingleThreadTaskRunner> send_runner, |
| 54 const base::Callback<void(IPC::Message*)>& send_callback) override; | 57 const base::Callback<void(IPC::Message*)>& send_callback) override; |
| 55 void OnChannelDestroyed(int host_id) override; | 58 void OnChannelDestroyed(int host_id) override; |
| 56 | 59 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 base::ScopedFD vgem_card_device_file_; | 140 base::ScopedFD vgem_card_device_file_; |
| 138 | 141 |
| 139 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; | 142 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; |
| 140 | 143 |
| 141 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); | 144 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); |
| 142 }; | 145 }; |
| 143 | 146 |
| 144 } // namespace ui | 147 } // namespace ui |
| 145 | 148 |
| 146 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ | 149 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ |
| OLD | NEW |