| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ | 5 #ifndef UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ |
| 6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ | 6 #define UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 #include "ui/gfx/ozone/surface_factory_ozone.h" | 11 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| 12 | 12 |
| 13 class SkBitmapDevice; | 13 class SkBitmapDevice; |
| 14 class SkCanvas; | 14 class SkCanvas; |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 | 17 |
| 18 class GFX_EXPORT FileSurfaceFactory : public SurfaceFactoryOzone { | 18 class GFX_EXPORT FileSurfaceFactory : public SurfaceFactoryOzone { |
| 19 public: | 19 public: |
| 20 explicit FileSurfaceFactory(const base::FilePath& dump_location); | 20 explicit FileSurfaceFactory(const base::FilePath& dump_location); |
| 21 virtual ~FileSurfaceFactory(); | 21 virtual ~FileSurfaceFactory(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // SurfaceFactoryOzone: | 24 // SurfaceFactoryOzone: |
| 25 virtual HardwareState InitializeHardware() OVERRIDE; | 25 virtual HardwareState InitializeHardware() OVERRIDE; |
| 26 virtual void ShutdownHardware() OVERRIDE; | 26 virtual void ShutdownHardware() OVERRIDE; |
| 27 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | |
| 28 virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget( | 27 virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget( |
| 29 AcceleratedWidget widget) OVERRIDE; | 28 AcceleratedWidget widget) OVERRIDE; |
| 30 virtual bool LoadEGLGLES2Bindings( | 29 virtual bool LoadEGLGLES2Bindings( |
| 31 AddGLLibraryCallback add_gl_library, | 30 AddGLLibraryCallback add_gl_library, |
| 32 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 31 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
| 33 | 32 |
| 34 base::FilePath location_; | 33 base::FilePath location_; |
| 35 | 34 |
| 36 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory); | 35 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory); |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace gfx | 38 } // namespace gfx |
| 40 | 39 |
| 41 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ | 40 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ |
| OLD | NEW |