Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / ozone / platform / dri / gbm_surfaceless.h
index 7949b18..4e3b92b 100644 (file)
@@ -5,24 +5,23 @@
 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACELESS_H_
 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACELESS_H_
 
-#include "base/memory/scoped_ptr.h"
-#include "ui/ozone/platform/dri/hardware_display_controller.h"
 #include "ui/ozone/public/surface_ozone_egl.h"
 
 namespace gfx {
 class Size;
-class Rect;
 }  // namespace gfx
 
 namespace ui {
 
+class DriWindowDelegate;
+
 // In surfaceless mode drawing and displaying happens directly through
 // NativePixmap buffers. CC would call into SurfaceFactoryOzone to allocate the
 // buffers and then call ScheduleOverlayPlane(..) to schedule the buffer for
 // presentation.
 class GbmSurfaceless : public SurfaceOzoneEGL {
  public:
-  GbmSurfaceless(const base::WeakPtr<HardwareDisplayController>& controller);
+  GbmSurfaceless(DriWindowDelegate* window_delegate);
   virtual ~GbmSurfaceless();
 
   // SurfaceOzoneEGL:
@@ -30,8 +29,9 @@ class GbmSurfaceless : public SurfaceOzoneEGL {
   virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE;
   virtual bool OnSwapBuffers() OVERRIDE;
   virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE;
+
  protected:
-  base::WeakPtr<HardwareDisplayController> controller_;
+  DriWindowDelegate* window_delegate_;
 
   DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
 };