Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_window_proxy.h

Issue 2886503002: Convert additional ozone/drm callbacks to OnceCallback (Closed)
Patch Set: fixed nit Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | ui/ozone/platform/drm/gpu/drm_window_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_WINDOW_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/vsync_provider.h" 12 #include "ui/gfx/vsync_provider.h"
13 #include "ui/ozone/public/swap_completion_callback.h" 13 #include "ui/ozone/public/swap_completion_callback.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class DrmThread; 17 class DrmThread;
18 struct OverlayPlane; 18 struct OverlayPlane;
19 19
20 class DrmWindowProxy { 20 class DrmWindowProxy {
21 public: 21 public:
22 DrmWindowProxy(gfx::AcceleratedWidget widget, DrmThread* drm_thread); 22 DrmWindowProxy(gfx::AcceleratedWidget widget, DrmThread* drm_thread);
23 ~DrmWindowProxy(); 23 ~DrmWindowProxy();
24 24
25 gfx::AcceleratedWidget widget() const { return widget_; } 25 gfx::AcceleratedWidget widget() const { return widget_; }
26 26
27 void SchedulePageFlip(const std::vector<OverlayPlane>& planes, 27 void SchedulePageFlip(const std::vector<OverlayPlane>& planes,
28 const SwapCompletionCallback& callback); 28 SwapCompletionOnceCallback callback);
29 29
30 void GetVSyncParameters( 30 void GetVSyncParameters(
31 const gfx::VSyncProvider::UpdateVSyncCallback& callback); 31 const gfx::VSyncProvider::UpdateVSyncCallback& callback);
32 32
33 private: 33 private:
34 gfx::AcceleratedWidget widget_; 34 gfx::AcceleratedWidget widget_;
35 35
36 DrmThread* drm_thread_; 36 DrmThread* drm_thread_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(DrmWindowProxy); 38 DISALLOW_COPY_AND_ASSIGN(DrmWindowProxy);
39 }; 39 };
40 40
41 } // namespace ui 41 } // namespace ui
42 42
43 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_ 43 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_WINDOW_PROXY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_window.cc ('k') | ui/ozone/platform/drm/gpu/drm_window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698