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_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 ~DrmThread() override; | 54 ~DrmThread() override; |
55 | 55 |
56 void Start(); | 56 void Start(); |
57 | 57 |
58 // Must be called on the DRM thread. | 58 // Must be called on the DRM thread. |
59 void CreateBuffer(gfx::AcceleratedWidget widget, | 59 void CreateBuffer(gfx::AcceleratedWidget widget, |
60 const gfx::Size& size, | 60 const gfx::Size& size, |
61 gfx::BufferFormat format, | 61 gfx::BufferFormat format, |
62 gfx::BufferUsage usage, | 62 gfx::BufferUsage usage, |
63 scoped_refptr<GbmBuffer>* buffer); | 63 scoped_refptr<GbmBuffer>* buffer); |
64 void CreateBufferFromFds(const gfx::Size& size, | 64 void CreateBufferFromFds(gfx::AcceleratedWidget widget, |
| 65 const gfx::Size& size, |
65 gfx::BufferFormat format, | 66 gfx::BufferFormat format, |
66 std::vector<base::ScopedFD>&& fds, | 67 std::vector<base::ScopedFD>&& fds, |
67 const std::vector<gfx::NativePixmapPlane>& planes, | 68 const std::vector<gfx::NativePixmapPlane>& planes, |
68 scoped_refptr<GbmBuffer>* buffer); | 69 scoped_refptr<GbmBuffer>* buffer); |
69 | 70 |
70 void GetScanoutFormats(gfx::AcceleratedWidget widget, | 71 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
71 std::vector<gfx::BufferFormat>* scanout_formats); | 72 std::vector<gfx::BufferFormat>* scanout_formats); |
72 void SchedulePageFlip(gfx::AcceleratedWidget widget, | 73 void SchedulePageFlip(gfx::AcceleratedWidget widget, |
73 const std::vector<OverlayPlane>& planes, | 74 const std::vector<OverlayPlane>& planes, |
74 const SwapCompletionCallback& callback); | 75 const SwapCompletionCallback& callback); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_; | 127 std::unique_ptr<ScanoutBufferGenerator> buffer_generator_; |
127 std::unique_ptr<ScreenManager> screen_manager_; | 128 std::unique_ptr<ScreenManager> screen_manager_; |
128 std::unique_ptr<DrmGpuDisplayManager> display_manager_; | 129 std::unique_ptr<DrmGpuDisplayManager> display_manager_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(DrmThread); | 131 DISALLOW_COPY_AND_ASSIGN(DrmThread); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace ui | 134 } // namespace ui |
134 | 135 |
135 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 136 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
OLD | NEW |