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

Unified Diff: ui/ozone/platform/dri/gpu_platform_support_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_gbm.h
diff --git a/ui/ozone/platform/dri/gpu_platform_support_gbm.h b/ui/ozone/platform/dri/gpu_platform_support_gbm.h
index 28066d43b060ae93c5bb66e4b02dfd4965e0252a..ce547e400cced14799854f2889fefed5fe9791ec 100644
--- a/ui/ozone/platform/dri/gpu_platform_support_gbm.h
+++ b/ui/ozone/platform/dri/gpu_platform_support_gbm.h
@@ -5,6 +5,8 @@
#ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
#define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/public/gpu_platform_support.h"
@@ -21,6 +23,9 @@ class DriSurfaceFactory;
class GpuPlatformSupportGbm : public GpuPlatformSupport {
public:
GpuPlatformSupportGbm(DriSurfaceFactory* dri);
+ virtual ~GpuPlatformSupportGbm();
+
+ void AddHandler(scoped_ptr<GpuPlatformSupport> handler);
// GpuPlatformSupport:
virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE;
@@ -37,6 +42,7 @@ class GpuPlatformSupportGbm : public GpuPlatformSupport {
void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
DriSurfaceFactory* dri_;
+ ScopedVector<GpuPlatformSupport> handlers_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698