| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 std::unique_ptr<DrmWindowProxy> CreateDrmWindowProxy( | 29 std::unique_ptr<DrmWindowProxy> CreateDrmWindowProxy( |
| 30 gfx::AcceleratedWidget widget); | 30 gfx::AcceleratedWidget widget); |
| 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 gfx::AcceleratedWidget widget, |
| 38 const gfx::Size& size, | 39 const gfx::Size& size, |
| 39 gfx::BufferFormat format, | 40 gfx::BufferFormat format, |
| 40 std::vector<base::ScopedFD>&& fds, | 41 std::vector<base::ScopedFD>&& fds, |
| 41 std::vector<int> strides, | 42 std::vector<int> strides, |
| 42 std::vector<int> offsets); | 43 std::vector<int> offsets); |
| 43 | 44 |
| 44 void GetScanoutFormats(gfx::AcceleratedWidget widget, | 45 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
| 45 std::vector<gfx::BufferFormat>* scanout_formats); | 46 std::vector<gfx::BufferFormat>* scanout_formats); |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 DrmThread drm_thread_; | 49 DrmThread drm_thread_; |
| 49 | 50 |
| 50 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); | 51 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace ui | 54 } // namespace ui |
| 54 | 55 |
| 55 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ | 56 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
| OLD | NEW |