#ifndef UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
#define UI_OZONE_PLATFORM_CACA_CACA_SURFACE_FACTORY_H_
#include <caca.h>
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/ozone/surface_factory_ozone.h"
namespace ui {
class CacaConnection;
class CacaSurfaceFactory : public gfx::SurfaceFactoryOzone {
public:
CacaSurfaceFactory(CacaConnection* connection);
virtual ~CacaSurfaceFactory();
virtual HardwareState InitializeHardware() OVERRIDE;
virtual void ShutdownHardware() OVERRIDE;
virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
virtual bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
virtual scoped_ptr<gfx::SurfaceOzone> CreateSurfaceForWidget(
gfx::AcceleratedWidget widget) OVERRIDE;
private:
HardwareState state_;
CacaConnection* connection_;
DISALLOW_COPY_AND_ASSIGN(CacaSurfaceFactory);
};
}
#endif