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

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

Issue 479713002: [Ozone-GBM] Adding NativeWindowDelegate to IPC window changes to the GPU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix name Created 6 years, 4 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/dri/gbm.gypi ('k') | ui/ozone/platform/dri/gpu_platform_support_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ce547e400cced14799854f2889fefed5fe9791ec..806bf9569b99b4bdda3fa88c521975d5c546bb35 100644
--- a/ui/ozone/platform/dri/gpu_platform_support_gbm.h
+++ b/ui/ozone/platform/dri/gpu_platform_support_gbm.h
@@ -5,6 +5,7 @@
#ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
#define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_
+#include "base/containers/scoped_ptr_hash_map.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "ui/gfx/native_widget_types.h"
@@ -14,15 +15,21 @@ class SkBitmap;
namespace gfx {
class Point;
+class Rect;
}
namespace ui {
class DriSurfaceFactory;
+class DriWindowDelegate;
+class DriWindowManager;
+class ScreenManager;
class GpuPlatformSupportGbm : public GpuPlatformSupport {
public:
- GpuPlatformSupportGbm(DriSurfaceFactory* dri);
+ GpuPlatformSupportGbm(DriSurfaceFactory* dri,
+ DriWindowManager* window_manager,
+ ScreenManager* screen_manager);
virtual ~GpuPlatformSupportGbm();
void AddHandler(scoped_ptr<GpuPlatformSupport> handler);
@@ -34,15 +41,24 @@ class GpuPlatformSupportGbm : public GpuPlatformSupport {
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
private:
- IPC::Sender* sender_;
-
+ void OnCreateWindowDelegate(gfx::AcceleratedWidget widget);
+ void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget);
+ void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
+ const gfx::Rect& bounds);
void OnCursorSet(gfx::AcceleratedWidget widget,
const SkBitmap& bitmap,
const gfx::Point& location);
void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
+ typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate>
+ WidgetToWindowDelegateMap;
+
+ IPC::Sender* sender_;
DriSurfaceFactory* dri_;
+ DriWindowManager* window_manager_;
+ ScreenManager* screen_manager_;
ScopedVector<GpuPlatformSupport> handlers_;
+ WidgetToWindowDelegateMap window_delegate_owner_;
};
} // namespace ui
« no previous file with comments | « ui/ozone/platform/dri/gbm.gypi ('k') | ui/ozone/platform/dri/gpu_platform_support_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698