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

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

Issue 1661783002: Centralize all gbm ozone host IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/gpu_thread_adapter.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 e16ab0351ff828b6073ffdd5607baa6ce90a2771..56b59bbb905f005c6e4a0e8268d373c13769d73a 100644
--- a/ui/ozone/platform/drm/host/drm_window_host.cc
+++ b/ui/ozone/platform/drm/host/drm_window_host.cc
@@ -11,11 +11,9 @@
#include "ui/events/ozone/events_ozone.h"
#include "ui/events/platform/platform_event_source.h"
#include "ui/gfx/display.h"
-#include "ui/ozone/common/gpu/ozone_gpu_messages.h"
#include "ui/ozone/platform/drm/host/drm_cursor.h"
#include "ui/ozone/platform/drm/host/drm_display_host.h"
#include "ui/ozone/platform/drm/host/drm_display_host_manager.h"
-#include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h"
#include "ui/ozone/platform/drm/host/drm_overlay_manager.h"
#include "ui/ozone/platform/drm/host/drm_window_host_manager.h"
#include "ui/platform_window/platform_window_delegate.h"
@@ -24,7 +22,7 @@ namespace ui {
DrmWindowHost::DrmWindowHost(PlatformWindowDelegate* delegate,
const gfx::Rect& bounds,
- DrmGpuPlatformSupportHost* sender,
+ GpuThreadAdapter* sender,
EventFactoryEvdev* event_factory,
DrmCursor* cursor,
DrmWindowHostManager* window_manager,
@@ -48,7 +46,7 @@ DrmWindowHost::~DrmWindowHost() {
cursor_->OnWindowRemoved(widget_);
sender_->RemoveGpuThreadObserver(this);
- sender_->Send(new OzoneGpuMsg_DestroyWindow(widget_));
+ sender_->GpuDestroyWindow(widget_);
}
void DrmWindowHost::Initialize() {
@@ -189,7 +187,7 @@ uint32_t DrmWindowHost::DispatchEvent(const PlatformEvent& native_event) {
}
void DrmWindowHost::OnGpuThreadReady() {
- sender_->Send(new OzoneGpuMsg_CreateWindow(widget_));
+ sender_->GpuCreateWindow(widget_);
SendBoundsChange();
}
@@ -199,7 +197,7 @@ void DrmWindowHost::SendBoundsChange() {
// Update the cursor before the window so that the cursor stays within the
// window bounds when the window size shrinks.
cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds());
- sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
+ sender_->GpuWindowBoundsChanged(widget_, bounds_);
overlay_manager_->ResetCache();
}
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.h ('k') | ui/ozone/platform/drm/host/gpu_thread_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698