| 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_SOFTWARE_SURFACE_FACTORY_OZONE_H_ | 5 #ifndef UI_GFX_OZONE_IMPL_SOFTWARE_SURFACE_FACTORY_OZONE_H_ |
| 6 #define UI_GFX_OZONE_IMPL_SOFTWARE_SURFACE_FACTORY_OZONE_H_ | 6 #define UI_GFX_OZONE_IMPL_SOFTWARE_SURFACE_FACTORY_OZONE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/gfx_export.h" |
| 9 #include "ui/gfx/ozone/surface_factory_ozone.h" | 10 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| 10 | 11 |
| 11 namespace gfx { | 12 namespace gfx { |
| 12 | 13 |
| 13 class DrmWrapperOzone; | 14 class DrmWrapperOzone; |
| 14 class HardwareDisplayControllerOzone; | 15 class HardwareDisplayControllerOzone; |
| 15 class SoftwareSurfaceOzone; | 16 class SoftwareSurfaceOzone; |
| 16 | 17 |
| 17 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. | 18 // SurfaceFactoryOzone implementation on top of DRM/KMS using dumb buffers. |
| 18 // This implementation is used in conjunction with the software rendering | 19 // This implementation is used in conjunction with the software rendering |
| 19 // path. | 20 // path. |
| 20 class SoftwareSurfaceFactoryOzone : public SurfaceFactoryOzone { | 21 class GFX_EXPORT SoftwareSurfaceFactoryOzone : public SurfaceFactoryOzone { |
| 21 public: | 22 public: |
| 22 SoftwareSurfaceFactoryOzone(); | 23 SoftwareSurfaceFactoryOzone(); |
| 23 virtual ~SoftwareSurfaceFactoryOzone(); | 24 virtual ~SoftwareSurfaceFactoryOzone(); |
| 24 | 25 |
| 25 virtual HardwareState InitializeHardware() OVERRIDE; | 26 virtual HardwareState InitializeHardware() OVERRIDE; |
| 26 virtual void ShutdownHardware() OVERRIDE; | 27 virtual void ShutdownHardware() OVERRIDE; |
| 27 | 28 |
| 28 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| 29 virtual gfx::AcceleratedWidget RealizeAcceleratedWidget( | 30 virtual gfx::AcceleratedWidget RealizeAcceleratedWidget( |
| 30 gfx::AcceleratedWidget w) OVERRIDE; | 31 gfx::AcceleratedWidget w) OVERRIDE; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Active output. | 68 // Active output. |
| 68 scoped_ptr<HardwareDisplayControllerOzone> controller_; | 69 scoped_ptr<HardwareDisplayControllerOzone> controller_; |
| 69 | 70 |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(SoftwareSurfaceFactoryOzone); | 72 DISALLOW_COPY_AND_ASSIGN(SoftwareSurfaceFactoryOzone); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace gfx | 75 } // namespace gfx |
| 75 | 76 |
| 76 #endif // UI_GFX_OZONE_IMPL_SOFTWARE_SURFACE_FACTORY_OZONE_H_ | 77 #endif // UI_GFX_OZONE_IMPL_SOFTWARE_SURFACE_FACTORY_OZONE_H_ |
| OLD | NEW |