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

Unified Diff: ui/ozone/platform/dri/gpu_platform_support_host_gbm.h

Issue 377753002: [Ozone-GBM] Add basic support for display configuration over IPC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/dri/gpu_platform_support_host_gbm.h
diff --git a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
index 6463413c32111b32bb7d78e61133fe2030e252d6..6f60b9e01f39dd2198bcf708b70eab59dfe9c917 100644
--- a/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
+++ b/ui/ozone/platform/dri/gpu_platform_support_host_gbm.h
@@ -5,6 +5,8 @@
#ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_
#define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_HOST_GBM_H_
+#include <vector>
+
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/platform/dri/hardware_cursor_delegate.h"
#include "ui/ozone/public/gpu_platform_support_host.h"
@@ -18,9 +20,14 @@ class Point;
namespace ui {
class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost,
- public HardwareCursorDelegate {
+ public HardwareCursorDelegate,
+ public IPC::Sender {
public:
GpuPlatformSupportHostGbm();
+ virtual ~GpuPlatformSupportHostGbm();
+
+ void RegisterHandler(GpuPlatformSupportHost* handler);
+ void UnregisterHandler(GpuPlatformSupportHost* handler);
// GpuPlatformSupportHost:
virtual void OnChannelEstablished(int host_id, IPC::Sender* sender) OVERRIDE;
@@ -29,6 +36,9 @@ class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost,
// IPC::Listener:
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ // IPC::Sender:
+ virtual bool Send(IPC::Message* message) OVERRIDE;
+
// HardwareCursorDelegate:
virtual void SetHardwareCursor(gfx::AcceleratedWidget widget,
const SkBitmap& bitmap,
@@ -39,6 +49,7 @@ class GpuPlatformSupportHostGbm : public GpuPlatformSupportHost,
private:
int host_id_;
IPC::Sender* sender_;
+ std::vector<GpuPlatformSupportHost*> handlers_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698