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

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

Issue 1091323002: Send a message through the ozone channel to recreate buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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.h
diff --git a/ui/ozone/platform/drm/host/drm_window_host.h b/ui/ozone/platform/drm/host/drm_window_host.h
index 74021f816212e42b2bc29cd4d84f0165d04c049f..709dea4ce7ef3691aaa68aab7fc81f46b7d41491 100644
--- a/ui/ozone/platform/drm/host/drm_window_host.h
+++ b/ui/ozone/platform/drm/host/drm_window_host.h
@@ -11,6 +11,7 @@
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/platform/drm/host/channel_observer.h"
+#include "ui/ozone/public/gpu_platform_support_host.h"
#include "ui/platform_window/platform_window.h"
namespace ui {
@@ -34,7 +35,8 @@ class EventFactoryEvdev;
// associated with the window (the surface is created on the GPU process).
class DrmWindowHost : public PlatformWindow,
public PlatformEventDispatcher,
- public ChannelObserver {
+ public ChannelObserver,
+ public GpuPlatformSupportHost {
public:
DrmWindowHost(PlatformWindowDelegate* delegate,
const gfx::Rect& bounds,
@@ -75,6 +77,16 @@ class DrmWindowHost : public PlatformWindow,
void OnChannelEstablished() override;
void OnChannelDestroyed() override;
+ // GpuPlatformSupportHost:
+ void OnChannelEstablished(
+ int host_id,
+ scoped_refptr<base::SingleThreadTaskRunner> send_runner,
+ const base::Callback<void(IPC::Message*)>& send_callback) override;
+ void OnChannelDestroyed(int host_id) override;
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ void OnWindowMappingChanged(gfx::AcceleratedWidget widget);
+
private:
void SendBoundsChange();
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc ('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