Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / ozone / platform / dri / gbm_surface.h
index 03e5d63..be52c9c 100644 (file)
@@ -6,7 +6,6 @@
 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_H_
 
 #include "base/macros.h"
-#include "base/memory/ref_counted.h"
 #include "ui/gfx/geometry/size.h"
 #include "ui/ozone/platform/dri/gbm_surfaceless.h"
 #include "ui/ozone/public/surface_ozone_egl.h"
@@ -19,6 +18,7 @@ namespace ui {
 
 class DriBuffer;
 class DriWrapper;
+class DriWindowDelegate;
 
 // Extends the GBM surfaceless functionality and adds an implicit surface for
 // the primary plane. Arbitrary buffers can still be allocated and displayed as
@@ -26,7 +26,7 @@ class DriWrapper;
 // surface and is updated via an EGLSurface.
 class GbmSurface : public GbmSurfaceless {
  public:
-  GbmSurface(const base::WeakPtr<HardwareDisplayController>& controller,
+  GbmSurface(DriWindowDelegate* window_delegate,
              gbm_device* device,
              DriWrapper* dri);
   virtual ~GbmSurface();