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

Unified Diff: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc

Issue 1161853007: ozone: Remove "Delegate" from window management IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 5 years, 6 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/gpu/drm_gpu_platform_support.h ('k') | ui/ozone/platform/drm/host/drm_window_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc
index a94d3088933494abb159f356a03a26dfe3467981..0e1f9e2d2a57085b6f89871a634ec2cf839b8c2f 100644
--- a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc
@@ -122,8 +122,8 @@ class DrmGpuPlatformSupportMessageFilter : public IPC::MessageFilter {
bool MessageAffectsCursorState(uint32 message_type) {
switch (message_type) {
- case OzoneGpuMsg_CreateWindowDelegate::ID:
- case OzoneGpuMsg_DestroyWindowDelegate::ID:
+ case OzoneGpuMsg_CreateWindow::ID:
+ case OzoneGpuMsg_DestroyWindow::ID:
case OzoneGpuMsg_WindowBoundsChanged::ID:
case OzoneGpuMsg_ConfigureNativeDisplay::ID:
case OzoneGpuMsg_DisableNativeDisplay::ID:
@@ -199,9 +199,8 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(DrmGpuPlatformSupport, message)
- IPC_MESSAGE_HANDLER(OzoneGpuMsg_CreateWindowDelegate, OnCreateWindowDelegate)
- IPC_MESSAGE_HANDLER(OzoneGpuMsg_DestroyWindowDelegate,
- OnDestroyWindowDelegate)
+ IPC_MESSAGE_HANDLER(OzoneGpuMsg_CreateWindow, OnCreateWindow)
+ IPC_MESSAGE_HANDLER(OzoneGpuMsg_DestroyWindow, OnDestroyWindow)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_WindowBoundsChanged, OnWindowBoundsChanged)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_CursorSet, OnCursorSet)
@@ -233,16 +232,14 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) {
return false;
}
-void DrmGpuPlatformSupport::OnCreateWindowDelegate(
- gfx::AcceleratedWidget widget) {
+void DrmGpuPlatformSupport::OnCreateWindow(gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> delegate(
new DrmWindow(widget, drm_device_manager_, screen_manager_));
delegate->Initialize();
screen_manager_->AddWindow(widget, delegate.Pass());
}
-void DrmGpuPlatformSupport::OnDestroyWindowDelegate(
- gfx::AcceleratedWidget widget) {
+void DrmGpuPlatformSupport::OnDestroyWindow(gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> delegate = screen_manager_->RemoveWindow(widget);
delegate->Shutdown();
}
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h ('k') | ui/ozone/platform/drm/host/drm_window_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698