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

Unified Diff: ui/ozone/platform/drm/host/drm_window_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
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.h ('k') | ui/ozone/platform/drm/host/drm_window_host_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_window_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_window_host.cc b/ui/ozone/platform/drm/host/drm_window_host.cc
index c7898312e8d467f09419a60d7fa0c211752c506f..e16ab0351ff828b6073ffdd5607baa6ce90a2771 100644
--- a/ui/ozone/platform/drm/host/drm_window_host.cc
+++ b/ui/ozone/platform/drm/host/drm_window_host.cc
@@ -47,12 +47,12 @@ DrmWindowHost::~DrmWindowHost() {
window_manager_->RemoveWindow(widget_);
cursor_->OnWindowRemoved(widget_);
- sender_->RemoveChannelObserver(this);
+ sender_->RemoveGpuThreadObserver(this);
sender_->Send(new OzoneGpuMsg_DestroyWindow(widget_));
}
void DrmWindowHost::Initialize() {
- sender_->AddChannelObserver(this);
+ sender_->AddGpuThreadObserver(this);
PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this);
cursor_->OnWindowAdded(widget_, bounds_, GetCursorConfinedBounds());
delegate_->OnAcceleratedWidgetAvailable(widget_, 1.f);
@@ -188,13 +188,12 @@ uint32_t DrmWindowHost::DispatchEvent(const PlatformEvent& native_event) {
return POST_DISPATCH_STOP_PROPAGATION;
}
-void DrmWindowHost::OnChannelEstablished() {
+void DrmWindowHost::OnGpuThreadReady() {
sender_->Send(new OzoneGpuMsg_CreateWindow(widget_));
SendBoundsChange();
}
-void DrmWindowHost::OnChannelDestroyed() {
-}
+void DrmWindowHost::OnGpuThreadRetired() {}
void DrmWindowHost::SendBoundsChange() {
// Update the cursor before the window so that the cursor stays within the
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.h ('k') | ui/ozone/platform/drm/host/drm_window_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698