#ifndef UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_
#define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/ozone/surface_factory_ozone.h"
class SkBitmapDevice;
class SkCanvas;
namespace gfx {
class GFX_EXPORT FileSurfaceFactory : public SurfaceFactoryOzone {
public:
explicit FileSurfaceFactory(const base::FilePath& dump_location);
virtual ~FileSurfaceFactory();
private:
virtual HardwareState InitializeHardware() OVERRIDE;
virtual void ShutdownHardware() OVERRIDE;
virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget(
AcceleratedWidget widget) OVERRIDE;
virtual bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
base::FilePath location_;
DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory);
};
}
#endif