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

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

Issue 2894523007: Use display::DisplayMode in ozone/drm/gpu (Closed)
Patch Set: review nits 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
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_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>
11 11
12 #include "base/files/scoped_file.h" 12 #include "base/files/scoped_file.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "mojo/public/cpp/bindings/binding_set.h" 16 #include "mojo/public/cpp/bindings/binding_set.h"
17 #include "ui/gfx/native_pixmap_handle.h" 17 #include "ui/gfx/native_pixmap_handle.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "ui/gfx/vsync_provider.h" 19 #include "ui/gfx/vsync_provider.h"
20 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 20 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
21 #include "ui/ozone/public/interfaces/device_cursor.mojom.h" 21 #include "ui/ozone/public/interfaces/device_cursor.mojom.h"
22 #include "ui/ozone/public/swap_completion_callback.h" 22 #include "ui/ozone/public/swap_completion_callback.h"
23 23
24 namespace base { 24 namespace base {
25 struct FileDescriptor; 25 struct FileDescriptor;
26 } 26 }
27 27
28 namespace display { 28 namespace display {
29 class DisplayMode;
29 struct GammaRampRGBEntry; 30 struct GammaRampRGBEntry;
30 } 31 }
31 32
32 namespace gfx { 33 namespace gfx {
33 class Point; 34 class Point;
34 class Rect; 35 class Rect;
35 } 36 }
36 37
37 namespace ui { 38 namespace ui {
38 39
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void CheckOverlayCapabilities( 93 void CheckOverlayCapabilities(
93 gfx::AcceleratedWidget widget, 94 gfx::AcceleratedWidget widget,
94 const std::vector<OverlayCheck_Params>& overlays, 95 const std::vector<OverlayCheck_Params>& overlays,
95 base::OnceCallback<void(gfx::AcceleratedWidget, 96 base::OnceCallback<void(gfx::AcceleratedWidget,
96 const std::vector<OverlayCheck_Params>&)> 97 const std::vector<OverlayCheck_Params>&)>
97 callback); 98 callback);
98 void RefreshNativeDisplays( 99 void RefreshNativeDisplays(
99 base::OnceCallback<void(const std::vector<DisplaySnapshot_Params>&)> 100 base::OnceCallback<void(const std::vector<DisplaySnapshot_Params>&)>
100 callback); 101 callback);
101 void ConfigureNativeDisplay(int64_t id, 102 void ConfigureNativeDisplay(int64_t id,
102 const DisplayMode_Params& mode, 103 std::unique_ptr<const display::DisplayMode> mode,
103 const gfx::Point& origin, 104 const gfx::Point& origin,
104 base::OnceCallback<void(int64_t, bool)> callback); 105 base::OnceCallback<void(int64_t, bool)> callback);
105 void DisableNativeDisplay(int64_t id, 106 void DisableNativeDisplay(int64_t id,
106 base::OnceCallback<void(int64_t, bool)> callback); 107 base::OnceCallback<void(int64_t, bool)> callback);
107 void TakeDisplayControl(base::OnceCallback<void(bool)> callback); 108 void TakeDisplayControl(base::OnceCallback<void(bool)> callback);
108 void RelinquishDisplayControl(base::OnceCallback<void(bool)> callback); 109 void RelinquishDisplayControl(base::OnceCallback<void(bool)> callback);
109 void AddGraphicsDevice(const base::FilePath& path, 110 void AddGraphicsDevice(const base::FilePath& path,
110 const base::FileDescriptor& fd); 111 const base::FileDescriptor& fd);
111 void RemoveGraphicsDevice(const base::FilePath& path); 112 void RemoveGraphicsDevice(const base::FilePath& path);
112 void GetHDCPState( 113 void GetHDCPState(
(...skipping 23 matching lines...) Expand all
136 // The mojo implementation requires a BindingSet because the DrmThread serves 137 // The mojo implementation requires a BindingSet because the DrmThread serves
137 // requests from two different client threads. 138 // requests from two different client threads.
138 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_; 139 mojo::BindingSet<ozone::mojom::DeviceCursor> bindings_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(DrmThread); 141 DISALLOW_COPY_AND_ASSIGN(DrmThread);
141 }; 142 };
142 143
143 } // namespace ui 144 } // namespace ui
144 145
145 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 146 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698