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

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

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: update & fix clang Created 5 years, 2 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
(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_
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