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

Unified Diff: ui/ozone/platform/dri/gbm_surfaceless.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_surfaceless.h
diff --git a/ui/ozone/platform/dri/gbm_surfaceless.h b/ui/ozone/platform/dri/gbm_surfaceless.h
index 7949b182176e958e80d0afd76bd023c6d1131fb9..4e3b92b12e9961d90daa3e936e5ed7d62ce2bfb7 100644
--- a/ui/ozone/platform/dri/gbm_surfaceless.h
+++ b/ui/ozone/platform/dri/gbm_surfaceless.h
@@ -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);
};

Powered by Google App Engine
This is Rietveld 408576698