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

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

Issue 1309273005: native_viewport support for ozone (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 3 months 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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 29 matching lines...) Expand all
40 void RemoveDelegate(DrmNativeDisplayDelegate* delegate); 40 void RemoveDelegate(DrmNativeDisplayDelegate* delegate);
41 41
42 void TakeDisplayControl(const DisplayControlCallback& callback); 42 void TakeDisplayControl(const DisplayControlCallback& callback);
43 void RelinquishDisplayControl(const DisplayControlCallback& callback); 43 void RelinquishDisplayControl(const DisplayControlCallback& callback);
44 void UpdateDisplays(const GetDisplaysCallback& callback); 44 void UpdateDisplays(const GetDisplaysCallback& callback);
45 45
46 // DeviceEventObserver overrides: 46 // DeviceEventObserver overrides:
47 void OnDeviceEvent(const DeviceEvent& event) override; 47 void OnDeviceEvent(const DeviceEvent& event) override;
48 48
49 // Note: IO is performed in OnChannelEstablished. 49 // Note: IO is performed in OnChannelEstablished.
50 void OnChannelEstablished(int host_id); 50 void OnChannelEstablished();
51 void OnChannelDestroyed(int host_id); 51 void OnChannelDestroyed();
52 52
53 void OnUpdateNativeDisplays( 53 void OnUpdateNativeDisplays(
54 const std::vector<DisplaySnapshot_Params>& displays); 54 const std::vector<DisplaySnapshot_Params>& displays);
55 void OnDisplayConfigured(int64_t display_id, bool status); 55 void OnDisplayConfigured(int64_t display_id, bool status);
56 56
57 // Called as a result of finishing to process the display hotplug event. These 57 // Called as a result of finishing to process the display hotplug event. These
58 // are responsible for dequing the event and scheduling the next event. 58 // are responsible for dequing the event and scheduling the next event.
59 void OnAddGraphicsDevice(const base::FilePath& path, 59 void OnAddGraphicsDevice(const base::FilePath& path,
60 scoped_ptr<DrmDeviceHandle> handle); 60 scoped_ptr<DrmDeviceHandle> handle);
61 void OnUpdateGraphicsDevice(); 61 void OnUpdateGraphicsDevice();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 base::ScopedFD vgem_card_device_file_; 131 base::ScopedFD vgem_card_device_file_;
132 132
133 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_; 133 base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager); 135 DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager);
136 }; 136 };
137 137
138 } // namespace ui 138 } // namespace ui
139 139
140 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_ 140 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DISPLAY_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface_factory.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