Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: ui/ozone/platform/drm/host/drm_display_host_manager.h

Issue 2459973002: Expedite discovery of primary DRM device. (Closed)
Patch Set: Add more comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void AddDelegate(DrmNativeDisplayDelegate* delegate); 50 void AddDelegate(DrmNativeDisplayDelegate* delegate);
51 void RemoveDelegate(DrmNativeDisplayDelegate* delegate); 51 void RemoveDelegate(DrmNativeDisplayDelegate* delegate);
52 void TakeDisplayControl(const DisplayControlCallback& callback); 52 void TakeDisplayControl(const DisplayControlCallback& callback);
53 void RelinquishDisplayControl(const DisplayControlCallback& callback); 53 void RelinquishDisplayControl(const DisplayControlCallback& callback);
54 void UpdateDisplays(const GetDisplaysCallback& callback); 54 void UpdateDisplays(const GetDisplaysCallback& callback);
55 55
56 // DeviceEventObserver overrides: 56 // DeviceEventObserver overrides:
57 void OnDeviceEvent(const DeviceEvent& event) override; 57 void OnDeviceEvent(const DeviceEvent& event) override;
58 58
59 // GpuThreadObserver overrides: 59 // GpuThreadObserver overrides:
60 void OnGpuProcessLaunched() override;
60 void OnGpuThreadReady() override; 61 void OnGpuThreadReady() override;
61 void OnGpuThreadRetired() override; 62 void OnGpuThreadRetired() override;
62 63
63 // Communication-free implementations of actions performed in response to 64 // Communication-free implementations of actions performed in response to
64 // messages from the GPU thread. 65 // messages from the GPU thread.
65 void GpuHasUpdatedNativeDisplays( 66 void GpuHasUpdatedNativeDisplays(
66 const std::vector<DisplaySnapshot_Params>& displays); 67 const std::vector<DisplaySnapshot_Params>& displays);
67 void GpuConfiguredDisplay(int64_t display_id, bool status); 68 void GpuConfiguredDisplay(int64_t display_id, bool status);
68 void GpuReceivedHDCPState(int64_t display_id, bool status, HDCPState state); 69 void GpuReceivedHDCPState(int64_t display_id, bool status, HDCPState state);
69 void GpuUpdatedHDCPState(int64_t display_id, bool status); 70 void GpuUpdatedHDCPState(int64_t display_id, bool status);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 std::unique_ptr<DrmDeviceHandle> primary_drm_device_handle_; 138 std::unique_ptr<DrmDeviceHandle> primary_drm_device_handle_;
138 139
139 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; 140 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); 142 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager);
142 }; 143 };
143 144
144 } // namespace ui 145 } // namespace ui
145 146
146 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ 147 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host.cc ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698