| Index: ui/gfx/ozone/dri/dri_surface_factory.h
|
| diff --git a/ui/gfx/ozone/dri/dri_surface_factory.h b/ui/gfx/ozone/dri/dri_surface_factory.h
|
| index 4ae950ff62ed1c6f5dab66570447878dc99c36e5..0f313079a75539d9539db4cbad7e036b20e09acf 100644
|
| --- a/ui/gfx/ozone/dri/dri_surface_factory.h
|
| +++ b/ui/gfx/ozone/dri/dri_surface_factory.h
|
| @@ -13,6 +13,7 @@ namespace gfx {
|
| class DriSurface;
|
| class DriWrapper;
|
| class HardwareDisplayController;
|
| +class ScanoutSurface;
|
|
|
| // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers.
|
| // This implementation is used in conjunction with the software rendering
|
| @@ -44,12 +45,22 @@ class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
|
| virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider(
|
| gfx::AcceleratedWidget w) OVERRIDE;
|
|
|
| + protected:
|
| + scoped_ptr<DriWrapper> drm_;
|
| +
|
| + HardwareState state_;
|
| +
|
| + // Active output.
|
| + scoped_ptr<HardwareDisplayController> controller_;
|
| +
|
| private:
|
| - virtual DriSurface* CreateSurface(
|
| + virtual ScanoutSurface* CreateSurface(
|
| HardwareDisplayController* controller);
|
|
|
| virtual DriWrapper* CreateWrapper();
|
|
|
| + virtual gfx::AcceleratedWidget GetNativeWidget(ScanoutSurface* surface);
|
| +
|
| virtual bool InitializeControllerForPrimaryDisplay(
|
| DriWrapper* drm,
|
| HardwareDisplayController* controller);
|
| @@ -60,13 +71,6 @@ class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone {
|
| // pending frame.
|
| virtual void WaitForPageFlipEvent(int fd);
|
|
|
| - scoped_ptr<DriWrapper> drm_;
|
| -
|
| - HardwareState state_;
|
| -
|
| - // Active output.
|
| - scoped_ptr<HardwareDisplayController> controller_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory);
|
| };
|
|
|
|
|