| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const gfx::Size& size, | 68 const gfx::Size& size, |
| 69 gfx::BufferFormat format, | 69 gfx::BufferFormat format, |
| 70 std::vector<base::ScopedFD>&& fds, | 70 std::vector<base::ScopedFD>&& fds, |
| 71 const std::vector<gfx::NativePixmapPlane>& planes, | 71 const std::vector<gfx::NativePixmapPlane>& planes, |
| 72 scoped_refptr<GbmBuffer>* buffer); | 72 scoped_refptr<GbmBuffer>* buffer); |
| 73 | 73 |
| 74 void GetScanoutFormats(gfx::AcceleratedWidget widget, | 74 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
| 75 std::vector<gfx::BufferFormat>* scanout_formats); | 75 std::vector<gfx::BufferFormat>* scanout_formats); |
| 76 void SchedulePageFlip(gfx::AcceleratedWidget widget, | 76 void SchedulePageFlip(gfx::AcceleratedWidget widget, |
| 77 const std::vector<OverlayPlane>& planes, | 77 const std::vector<OverlayPlane>& planes, |
| 78 const SwapCompletionCallback& callback); | 78 SwapCompletionOnceCallback callback); |
| 79 void GetVSyncParameters( | 79 void GetVSyncParameters( |
| 80 gfx::AcceleratedWidget widget, | 80 gfx::AcceleratedWidget widget, |
| 81 const gfx::VSyncProvider::UpdateVSyncCallback& callback); | 81 const gfx::VSyncProvider::UpdateVSyncCallback& callback); |
| 82 | 82 |
| 83 void CreateWindow(gfx::AcceleratedWidget widget); | 83 void CreateWindow(gfx::AcceleratedWidget widget); |
| 84 void DestroyWindow(gfx::AcceleratedWidget widget); | 84 void DestroyWindow(gfx::AcceleratedWidget widget); |
| 85 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); | 85 void SetWindowBounds(gfx::AcceleratedWidget widget, const gfx::Rect& bounds); |
| 86 void SetCursor(const gfx::AcceleratedWidget& widget, | 86 void SetCursor(const gfx::AcceleratedWidget& widget, |
| 87 const std::vector<SkBitmap>& bitmaps, | 87 const std::vector<SkBitmap>& bitmaps, |
| 88 const gfx::Point& location, | 88 const gfx::Point& location, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // The mojo implementation requires a BindingSet because the DrmThread serves | 136 // The mojo implementation requires a BindingSet because the DrmThread serves |
| 137 // requests from two different client threads. | 137 // requests from two different client threads. |
| 138 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_; | 138 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(DrmThread); | 140 DISALLOW_COPY_AND_ASSIGN(DrmThread); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace ui | 143 } // namespace ui |
| 144 | 144 |
| 145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
| OLD | NEW |