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_DRI_DRI_SURFACE_FACTORY_H_ | 5 #ifndef UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 6 #define UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/ozone/surface_factory_ozone.h" | 9 #include "ui/gfx/ozone/surface_factory_ozone.h" |
10 #include "ui/gfx/ozone/surface_ozone.h" | 10 #include "ui/gfx/ozone/surface_ozone.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 | 13 |
14 class DriSurface; | 14 class DriSurface; |
15 class DriWrapper; | 15 class DriWrapper; |
16 class HardwareDisplayController; | 16 class HardwareDisplayController; |
17 class SurfaceOzone; | 17 class SurfaceOzone; |
18 | 18 |
19 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. | 19 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. |
20 // This implementation is used in conjunction with the software rendering | 20 // This implementation is used in conjunction with the software rendering |
21 // path. | 21 // path. |
22 class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone { | 22 class GFX_EXPORT DriSurfaceFactory : public SurfaceFactoryOzone { |
23 public: | 23 public: |
24 DriSurfaceFactory(); | 24 DriSurfaceFactory(); |
25 virtual ~DriSurfaceFactory(); | 25 virtual ~DriSurfaceFactory(); |
26 | 26 |
27 virtual HardwareState InitializeHardware() OVERRIDE; | 27 virtual HardwareState InitializeHardware() OVERRIDE; |
28 virtual void ShutdownHardware() OVERRIDE; | 28 virtual void ShutdownHardware() OVERRIDE; |
29 | 29 |
30 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 30 virtual gfx::AcceleratedWidget GetAcceleratedWidget(); |
31 | 31 |
32 virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget( | 32 virtual scoped_ptr<SurfaceOzone> CreateSurfaceForWidget( |
33 gfx::AcceleratedWidget w) OVERRIDE; | 33 gfx::AcceleratedWidget w) OVERRIDE; |
34 | 34 |
35 virtual bool LoadEGLGLES2Bindings( | 35 virtual bool LoadEGLGLES2Bindings( |
36 AddGLLibraryCallback add_gl_library, | 36 AddGLLibraryCallback add_gl_library, |
37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 37 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
38 | 38 |
39 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w); | 39 virtual bool SchedulePageFlip(gfx::AcceleratedWidget w); |
40 | 40 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_ptr<HardwareDisplayController> controller_; | 74 scoped_ptr<HardwareDisplayController> controller_; |
75 | 75 |
76 scoped_ptr<DriSurface> cursor_surface_; | 76 scoped_ptr<DriSurface> cursor_surface_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); | 78 DISALLOW_COPY_AND_ASSIGN(DriSurfaceFactory); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace gfx | 81 } // namespace gfx |
82 | 82 |
83 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ | 83 #endif // UI_GFX_OZONE_DRI_DRI_SURFACE_FACTORY_H_ |
OLD | NEW |