OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DRM_THREAD_PROXY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget, | 32 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget, |
33 const gfx::Size& size, | 33 const gfx::Size& size, |
34 gfx::BufferFormat format, | 34 gfx::BufferFormat format, |
35 gfx::BufferUsage usage); | 35 gfx::BufferUsage usage); |
36 | 36 |
37 scoped_refptr<GbmBuffer> CreateBufferFromFds( | 37 scoped_refptr<GbmBuffer> CreateBufferFromFds( |
38 const gfx::Size& size, | 38 const gfx::Size& size, |
39 gfx::BufferFormat format, | 39 gfx::BufferFormat format, |
40 std::vector<base::ScopedFD>&& fds, | 40 std::vector<base::ScopedFD>&& fds, |
41 const std::vector<gfx::NativePixmapPlane>& planes); | 41 std::vector<int> strides, |
| 42 std::vector<int> offsets); |
42 | 43 |
43 void GetScanoutFormats(gfx::AcceleratedWidget widget, | 44 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
44 std::vector<gfx::BufferFormat>* scanout_formats); | 45 std::vector<gfx::BufferFormat>* scanout_formats); |
45 | 46 |
46 private: | 47 private: |
47 DrmThread drm_thread_; | 48 DrmThread drm_thread_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); | 50 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace ui | 53 } // namespace ui |
53 | 54 |
54 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ | 55 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
OLD | NEW |