OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_ |
| 7 |
| 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/gfx/vsync_provider.h" |
| 10 #include "ui/ozone/public/surface_ozone_egl.h" |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 class DrmThread; |
| 15 struct OverlayPlane; |
| 16 |
| 17 class DrmWindowProxy { |
| 18 public: |
| 19 DrmWindowProxy(gfx::AcceleratedWidget widget, DrmThread* drm_thread); |
| 20 ~DrmWindowProxy(); |
| 21 |
| 22 gfx::AcceleratedWidget widget() const { return widget_; } |
| 23 |
| 24 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, |
| 25 const SwapCompletionCallback& callback); |
| 26 |
| 27 void GetVSyncParameters( |
| 28 const gfx::VSyncProvider::UpdateVSyncCallback& callback); |
| 29 |
| 30 private: |
| 31 gfx::AcceleratedWidget widget_; |
| 32 |
| 33 DrmThread* drm_thread_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(DrmWindowProxy); |
| 36 }; |
| 37 |
| 38 } // namespace ui |
| 39 |
| 40 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_ |
OLD | NEW |