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

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

Issue 469343003: [Ozone-GBM] Pumb DriWindowDelegate throughout the platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
Index: ui/ozone/platform/dri/gbm_surface_factory.h
diff --git a/ui/ozone/platform/dri/gbm_surface_factory.h b/ui/ozone/platform/dri/gbm_surface_factory.h
index 0c83e17b87aeb7ecd64660808fcc6b5da53034c2..2b93e96086e72b57170425f91b94d7837d0be44f 100644
--- a/ui/ozone/platform/dri/gbm_surface_factory.h
+++ b/ui/ozone/platform/dri/gbm_surface_factory.h
@@ -11,6 +11,9 @@ struct gbm_device;
namespace ui {
+class DriWindowDelegate;
+class DriWindowManager;
+
class GbmSurfaceFactory : public DriSurfaceFactory {
public:
GbmSurfaceFactory(bool allow_surfaceless);
@@ -18,7 +21,8 @@ class GbmSurfaceFactory : public DriSurfaceFactory {
void InitializeGpu(DriWrapper* dri,
gbm_device* device,
- ScreenManager* screen_manager);
+ ScreenManager* screen_manager,
+ DriWindowManager* window_manager);
// DriSurfaceFactory:
virtual intptr_t GetNativeDisplay() OVERRIDE;
@@ -43,6 +47,8 @@ class GbmSurfaceFactory : public DriSurfaceFactory {
virtual bool CanShowPrimaryPlaneAsOverlay() OVERRIDE;
private:
+ DriWindowDelegate* GetOrCreateWindowDelegate(gfx::AcceleratedWidget widget);
+
gbm_device* device_; // Not owned.
bool allow_surfaceless_;

Powered by Google App Engine
This is Rietveld 408576698