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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 28 virtual AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
29 virtual AcceleratedWidget RealizeAcceleratedWidget( | 29 virtual AcceleratedWidget RealizeAcceleratedWidget( |
30 AcceleratedWidget widget) OVERRIDE; | 30 AcceleratedWidget widget) OVERRIDE; |
31 virtual bool LoadEGLGLES2Bindings( | 31 virtual bool LoadEGLGLES2Bindings( |
32 AddGLLibraryCallback add_gl_library, | 32 AddGLLibraryCallback add_gl_library, |
33 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 33 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
34 virtual bool AttemptToResizeAcceleratedWidget(AcceleratedWidget widget, | 34 virtual bool AttemptToResizeAcceleratedWidget(AcceleratedWidget widget, |
35 const Rect& bounds) OVERRIDE; | 35 const Rect& bounds) OVERRIDE; |
36 virtual bool SchedulePageFlip(AcceleratedWidget widget) OVERRIDE; | 36 virtual bool SchedulePageFlip(AcceleratedWidget widget) OVERRIDE; |
37 virtual SkCanvas* GetCanvasForWidget(AcceleratedWidget widget) OVERRIDE; | 37 virtual SkCanvas* GetCanvasForWidget(AcceleratedWidget widget) OVERRIDE; |
38 virtual VSyncProvider* GetVSyncProvider(AcceleratedWidget widget) OVERRIDE; | 38 virtual scoped_ptr<VSyncProvider> CreateVSyncProvider( |
| 39 AcceleratedWidget widget) OVERRIDE; |
39 | 40 |
40 base::FilePath location_; | 41 base::FilePath location_; |
41 skia::RefPtr<SkBitmapDevice> device_; | 42 skia::RefPtr<SkBitmapDevice> device_; |
42 skia::RefPtr<SkCanvas> canvas_; | 43 skia::RefPtr<SkCanvas> canvas_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory); | 45 DISALLOW_COPY_AND_ASSIGN(FileSurfaceFactory); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace gfx | 48 } // namespace gfx |
48 | 49 |
49 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ | 50 #endif // UI_GFX_OZONE_IMPL_FILE_SURFACE_FACTORY_H_ |
OLD | NEW |