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 "ui/ozone/platform/drm/gpu/drm_surface_factory.h" | 8 #include "ui/ozone/platform/drm/gpu/drm_surface_factory.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 21 matching lines...) Expand all Loading... |
32 gfx::AcceleratedWidget widget) override; | 32 gfx::AcceleratedWidget widget) override; |
33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( | 33 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( |
34 gfx::AcceleratedWidget w) override; | 34 gfx::AcceleratedWidget w) override; |
35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( | 35 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( |
36 gfx::AcceleratedWidget widget) override; | 36 gfx::AcceleratedWidget widget) override; |
37 scoped_refptr<ui::NativePixmap> CreateNativePixmap( | 37 scoped_refptr<ui::NativePixmap> CreateNativePixmap( |
38 gfx::AcceleratedWidget widget, | 38 gfx::AcceleratedWidget widget, |
39 gfx::Size size, | 39 gfx::Size size, |
40 BufferFormat format, | 40 BufferFormat format, |
41 BufferUsage usage) override; | 41 BufferUsage usage) override; |
| 42 base::FileDescriptor ExportDmaBuf( |
| 43 gfx::AcceleratedWidget widget, |
| 44 scoped_refptr<NativePixmap> pixmap) override; |
42 bool CanShowPrimaryPlaneAsOverlay() override; | 45 bool CanShowPrimaryPlaneAsOverlay() override; |
43 | 46 |
44 private: | 47 private: |
45 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); | 48 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); |
46 | 49 |
47 bool allow_surfaceless_; | 50 bool allow_surfaceless_; |
48 | 51 |
49 DrmDeviceManager* drm_device_manager_; // Not owned. | 52 DrmDeviceManager* drm_device_manager_; // Not owned. |
50 | 53 |
51 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); | 54 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); |
52 }; | 55 }; |
53 | 56 |
54 } // namespace ui | 57 } // namespace ui |
55 | 58 |
56 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ | 59 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ |
OLD | NEW |