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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread_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: . 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
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_THREAD_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
7
8 namespace ui {
9
10 class DrmThreadProxy {
11 public:
12 DrmThreadProxy();
13
14 void OnCreateWindow(gfx::AcceleratedWidget widget);
15 void OnDestroyWindow(gfx::AcceleratedWidget widget);
16 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
17 const gfx::Rect& bounds);
18 void OnCursorSet(gfx::AcceleratedWidget widget,
19 const std::vector<SkBitmap>& bitmaps,
20 const gfx::Point& location,
21 int frame_delay_ms);
22 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location);
23 void OnCheckOverlayCapabilities(
24 gfx::AcceleratedWidget widget,
25 const std::vector<OverlayCheck_Params>& overlays,
26 const base::Callback<void(gfx::AcceleratedWidget, bool)>& callback);
27 void OnRefreshNativeDisplays(
28 const base::Callback<void(const std::vector<DisplaySnapshot_Params>&)>&
29 callback);
30 void OnConfigureNativeDisplay(
31 int64_t id,
32 const DisplayMode_Params& mode,
33 const gfx::Point& origin,
34 const base::Callback<void(int64_t, bool)>& callback);
35 void OnDisableNativeDisplay(
36 int64_t id,
37 const base::Callback<void(int64_t, bool)>& callback);
38 void OnTakeDisplayControl(const base::Callback<void(bool)>& callback);
39 void OnRelinquishDisplayControl(const base::Callback<void(bool)>& callback);
40 void OnAddGraphicsDevice(const base::FilePath& path,
41 const base::FileDescriptor& fd);
42 void OnRemoveGraphicsDevice(const base::FilePath& path);
43 void OnGetHDCPState(
44 int64_t display_id,
45 const base::Callback<void(int64_t, bool, HDCPState>& callback);
46 void OnSetHDCPState(
47 int64_t display_id,
48 HDCPState state,
49 const base::Callback<void(int64_t, bool)>& callback);
50 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut);
51
52 private:
53 DrmThread drm_thread_;
54
55 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy);
56 };
57
58 } // namespace ui
59
60 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698