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

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: additional proof-reading 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_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..8188d73c0ec9e74face6f4a0a259bcf75939a913 100644
--- a/ui/ozone/platform/drm/host/drm_window_host.cc
+++ b/ui/ozone/platform/drm/host/drm_window_host.cc
@@ -15,7 +15,6 @@
#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 +23,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 +47,7 @@ DrmWindowHost::~DrmWindowHost() {
cursor_->OnWindowRemoved(widget_);
sender_->RemoveGpuThreadObserver(this);
- sender_->Send(new OzoneGpuMsg_DestroyWindow(widget_));
+ sender_->GpuDestroyWindow(widget_);
}
void DrmWindowHost::Initialize() {
@@ -189,7 +188,7 @@ uint32_t DrmWindowHost::DispatchEvent(const PlatformEvent& native_event) {
}
void DrmWindowHost::OnGpuThreadReady() {
- sender_->Send(new OzoneGpuMsg_CreateWindow(widget_));
+ sender_->GpuCreateWindow(widget_);
SendBoundsChange();
}
@@ -199,7 +198,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();
}

Powered by Google App Engine
This is Rietveld 408576698