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 "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 | 52 |
53 void Start(); | 53 void Start(); |
54 | 54 |
55 // Must be called on the DRM thread. | 55 // Must be called on the DRM thread. |
56 void CreateBuffer(gfx::AcceleratedWidget widget, | 56 void CreateBuffer(gfx::AcceleratedWidget widget, |
57 const gfx::Size& size, | 57 const gfx::Size& size, |
58 gfx::BufferFormat format, | 58 gfx::BufferFormat format, |
59 gfx::BufferUsage usage, | 59 gfx::BufferUsage usage, |
60 scoped_refptr<GbmBuffer>* buffer); | 60 scoped_refptr<GbmBuffer>* buffer); |
61 | 61 |
62 void GetSupportedFormats(std::vector<uint32_t>* support_formats); | |
spang
2016/01/20 18:52:24
Document what the uint32_t means.
In fact, could
william.xie
2016/01/21 02:14:02
Done.
| |
62 void SchedulePageFlip(gfx::AcceleratedWidget widget, | 63 void SchedulePageFlip(gfx::AcceleratedWidget widget, |
63 const std::vector<OverlayPlane>& planes, | 64 const std::vector<OverlayPlane>& planes, |
64 const SwapCompletionCallback& callback); | 65 const SwapCompletionCallback& callback); |
65 void GetVSyncParameters( | 66 void GetVSyncParameters( |
66 gfx::AcceleratedWidget widget, | 67 gfx::AcceleratedWidget widget, |
67 const gfx::VSyncProvider::UpdateVSyncCallback& callback); | 68 const gfx::VSyncProvider::UpdateVSyncCallback& callback); |
68 | 69 |
69 void CreateWindow(gfx::AcceleratedWidget widget); | 70 void CreateWindow(gfx::AcceleratedWidget widget); |
70 void DestroyWindow(gfx::AcceleratedWidget widget); | 71 void DestroyWindow(gfx::AcceleratedWidget widget); |
71 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); | 72 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; | 113 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; |
113 scoped_ptr<ScreenManager> screen_manager_; | 114 scoped_ptr<ScreenManager> screen_manager_; |
114 scoped_ptr<DrmGpuDisplayManager> display_manager_; | 115 scoped_ptr<DrmGpuDisplayManager> display_manager_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(DrmThread); | 117 DISALLOW_COPY_AND_ASSIGN(DrmThread); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace ui | 120 } // namespace ui |
120 | 121 |
121 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 122 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
OLD | NEW |