| 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 std::vector<int> strides, | 41 const std::vector<gfx::GbmBufferPlane>& planes); |
| 42 std::vector<int> offsets); | |
| 43 | 42 |
| 44 void GetScanoutFormats(gfx::AcceleratedWidget widget, | 43 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
| 45 std::vector<gfx::BufferFormat>* scanout_formats); | 44 std::vector<gfx::BufferFormat>* scanout_formats); |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 DrmThread drm_thread_; | 47 DrmThread drm_thread_; |
| 49 | 48 |
| 50 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); | 49 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 } // namespace ui | 52 } // namespace ui |
| 54 | 53 |
| 55 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ | 54 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
| OLD | NEW |