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

Unified Diff: ui/ozone/platform/drm/host/drm_display_host.cc

Issue 1603213002: Renamed ChannelObserver to better describe its purpose (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nit Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/host/drm_display_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_display_host.cc b/ui/ozone/platform/drm/host/drm_display_host.cc
index 9491e4ef2c45853a0a9aa89aaa2247c76db8b022..be22699a3a4d69236568e611830ed0f0036a5d85 100644
--- a/ui/ozone/platform/drm/host/drm_display_host.cc
+++ b/ui/ozone/platform/drm/host/drm_display_host.cc
@@ -18,11 +18,11 @@ DrmDisplayHost::DrmDisplayHost(DrmGpuPlatformSupportHost* sender,
: sender_(sender),
snapshot_(new DisplaySnapshotProxy(params)),
is_dummy_(is_dummy) {
- sender_->AddChannelObserver(this);
+ sender_->AddGpuThreadObserver(this);
}
DrmDisplayHost::~DrmDisplayHost() {
- sender_->RemoveChannelObserver(this);
+ sender_->RemoveGpuThreadObserver(this);
ClearCallbacks();
}
@@ -107,7 +107,7 @@ void DrmDisplayHost::SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut) {
sender_->Send(new OzoneGpuMsg_SetGammaRamp(snapshot_->display_id(), lut));
}
-void DrmDisplayHost::OnChannelEstablished() {
+void DrmDisplayHost::OnGpuThreadReady() {
is_dummy_ = false;
// Note: These responses are done here since the OnChannelDestroyed() is
@@ -115,8 +115,7 @@ void DrmDisplayHost::OnChannelEstablished() {
ClearCallbacks();
}
-void DrmDisplayHost::OnChannelDestroyed() {
-}
+void DrmDisplayHost::OnGpuThreadRetired() {}
void DrmDisplayHost::ClearCallbacks() {
if (!configure_callback_.is_null())
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host.h ('k') | ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698