root/ui/gfx/ozone/impl/file_surface_factory.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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:
  // SurfaceFactoryOzone:
  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);
};

}  // namespace gfx

#endif  // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_

/* [<][>][^][v][top][bottom][index][help] */