| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const; | 33 GbmSurfaceless* GetSurface(gfx::AcceleratedWidget widget) const; |
| 34 | 34 |
| 35 // SurfaceFactoryOzone: | 35 // SurfaceFactoryOzone: |
| 36 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override; | 36 std::vector<gl::GLImplementation> GetAllowedGLImplementations() override; |
| 37 GLOzone* GetGLOzone(gl::GLImplementation implementation) override; | 37 GLOzone* GetGLOzone(gl::GLImplementation implementation) override; |
| 38 | 38 |
| 39 std::vector<gfx::BufferFormat> GetScanoutFormats( | 39 std::vector<gfx::BufferFormat> GetScanoutFormats( |
| 40 gfx::AcceleratedWidget widget) override; | 40 gfx::AcceleratedWidget widget) override; |
| 41 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 41 std::unique_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
| 42 gfx::AcceleratedWidget widget) override; | 42 gfx::AcceleratedWidget widget) override; |
| 43 scoped_refptr<ui::NativePixmap> CreateNativePixmap( | 43 scoped_refptr<gfx::NativePixmap> CreateNativePixmap( |
| 44 gfx::AcceleratedWidget widget, | 44 gfx::AcceleratedWidget widget, |
| 45 gfx::Size size, | 45 gfx::Size size, |
| 46 gfx::BufferFormat format, | 46 gfx::BufferFormat format, |
| 47 gfx::BufferUsage usage) override; | 47 gfx::BufferUsage usage) override; |
| 48 scoped_refptr<NativePixmap> CreateNativePixmapFromHandle( | 48 scoped_refptr<gfx::NativePixmap> CreateNativePixmapFromHandle( |
| 49 gfx::AcceleratedWidget widget, | 49 gfx::AcceleratedWidget widget, |
| 50 gfx::Size size, | 50 gfx::Size size, |
| 51 gfx::BufferFormat format, | 51 gfx::BufferFormat format, |
| 52 const gfx::NativePixmapHandle& handle) override; | 52 const gfx::NativePixmapHandle& handle) override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 std::unique_ptr<GLOzone> egl_implementation_; | 55 std::unique_ptr<GLOzone> egl_implementation_; |
| 56 std::unique_ptr<GLOzone> osmesa_implementation_; | 56 std::unique_ptr<GLOzone> osmesa_implementation_; |
| 57 | 57 |
| 58 base::ThreadChecker thread_checker_; | 58 base::ThreadChecker thread_checker_; |
| 59 | 59 |
| 60 DrmThreadProxy* drm_thread_proxy_; | 60 DrmThreadProxy* drm_thread_proxy_; |
| 61 | 61 |
| 62 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_; | 62 std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); | 64 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace ui | 67 } // namespace ui |
| 68 | 68 |
| 69 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ | 69 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ |
| OLD | NEW |