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

Side by Side Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.cc

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Add functions for configuring cached displays Created 4 years, 7 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
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698