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 #include "ui/ozone/platform/drm/host/drm_native_display_delegate.h" | 5 #include "ui/ozone/platform/drm/host/drm_native_display_delegate.h" |
6 | 6 |
7 #include "ui/display/types/display_snapshot.h" | 7 #include "ui/display/types/display_snapshot.h" |
8 #include "ui/display/types/native_display_observer.h" | 8 #include "ui/display/types/native_display_observer.h" |
9 #include "ui/ozone/platform/drm/host/drm_display_host.h" | 9 #include "ui/ozone/platform/drm/host/drm_display_host.h" |
10 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" | 10 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 void DrmNativeDisplayDelegate::SyncWithServer() { | 48 void DrmNativeDisplayDelegate::SyncWithServer() { |
49 } | 49 } |
50 | 50 |
51 void DrmNativeDisplayDelegate::SetBackgroundColor(uint32_t color_argb) { | 51 void DrmNativeDisplayDelegate::SetBackgroundColor(uint32_t color_argb) { |
52 } | 52 } |
53 | 53 |
54 void DrmNativeDisplayDelegate::ForceDPMSOn() { | 54 void DrmNativeDisplayDelegate::ForceDPMSOn() { |
55 } | 55 } |
56 | 56 |
| 57 void DrmNativeDisplayDelegate::GetCachedDisplays( |
| 58 const GetDisplaysCallback& callback) { |
| 59 display_manager_->GetCachedDisplays(callback); |
| 60 } |
| 61 |
57 void DrmNativeDisplayDelegate::GetDisplays( | 62 void DrmNativeDisplayDelegate::GetDisplays( |
58 const GetDisplaysCallback& callback) { | 63 const GetDisplaysCallback& callback) { |
59 display_manager_->UpdateDisplays(callback); | 64 display_manager_->UpdateDisplays(callback); |
60 } | 65 } |
61 | 66 |
62 void DrmNativeDisplayDelegate::AddMode(const ui::DisplaySnapshot& output, | 67 void DrmNativeDisplayDelegate::AddMode(const ui::DisplaySnapshot& output, |
63 const ui::DisplayMode* mode) { | 68 const ui::DisplayMode* mode) { |
64 } | 69 } |
65 | 70 |
66 void DrmNativeDisplayDelegate::Configure(const ui::DisplaySnapshot& output, | 71 void DrmNativeDisplayDelegate::Configure(const ui::DisplaySnapshot& output, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 119 |
115 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 120 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
116 observers_.AddObserver(observer); | 121 observers_.AddObserver(observer); |
117 } | 122 } |
118 | 123 |
119 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 124 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
120 observers_.RemoveObserver(observer); | 125 observers_.RemoveObserver(observer); |
121 } | 126 } |
122 | 127 |
123 } // namespace ui | 128 } // namespace ui |
OLD | NEW |