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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 scoped_refptr<DrmThreadMessageProxy> CreateDrmThreadMessageProxy(); | 26 scoped_refptr<DrmThreadMessageProxy> CreateDrmThreadMessageProxy(); |
27 | 27 |
28 scoped_ptr<DrmWindowProxy> CreateDrmWindowProxy( | 28 scoped_ptr<DrmWindowProxy> CreateDrmWindowProxy( |
29 gfx::AcceleratedWidget widget); | 29 gfx::AcceleratedWidget widget); |
30 | 30 |
31 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget, | 31 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget, |
32 const gfx::Size& size, | 32 const gfx::Size& size, |
33 gfx::BufferFormat format, | 33 gfx::BufferFormat format, |
34 gfx::BufferUsage usage); | 34 gfx::BufferUsage usage); |
35 | 35 |
| 36 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
| 37 std::vector<gfx::BufferFormat>* scanout_formats); |
| 38 |
36 private: | 39 private: |
37 DrmThread drm_thread_; | 40 DrmThread drm_thread_; |
38 | 41 |
39 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); | 42 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); |
40 }; | 43 }; |
41 | 44 |
42 } // namespace ui | 45 } // namespace ui |
43 | 46 |
44 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ | 47 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ |
OLD | NEW |