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

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

Issue 2896173002: ozone: introduce OverlayCheckReturn_Params (Closed)
Patch Set: ozone: fix broken overlay promotion. Created 3 years, 6 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 #include "ui/ozone/platform/drm/gpu/drm_thread.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
6 6
7 #include <gbm.h> 7 #include <gbm.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 void DrmThread::MoveCursor(const gfx::AcceleratedWidget& widget, 214 void DrmThread::MoveCursor(const gfx::AcceleratedWidget& widget,
215 const gfx::Point& location) { 215 const gfx::Point& location) {
216 screen_manager_->GetWindow(widget)->MoveCursor(location); 216 screen_manager_->GetWindow(widget)->MoveCursor(location);
217 } 217 }
218 218
219 void DrmThread::CheckOverlayCapabilities( 219 void DrmThread::CheckOverlayCapabilities(
220 gfx::AcceleratedWidget widget, 220 gfx::AcceleratedWidget widget,
221 const std::vector<OverlayCheck_Params>& overlays, 221 const std::vector<OverlayCheck_Params>& overlays,
222 base::OnceCallback<void(gfx::AcceleratedWidget, 222 base::OnceCallback<void(gfx::AcceleratedWidget,
223 const std::vector<OverlayCheck_Params>&)> 223 const std::vector<OverlayCheck_Params>&,
224 const std::vector<OverlayCheckReturn_Params>&)>
224 callback) { 225 callback) {
225 std::move(callback).Run( 226 std::move(callback).Run(
226 widget, screen_manager_->GetWindow(widget)->TestPageFlip(overlays)); 227 widget, overlays,
228 screen_manager_->GetWindow(widget)->TestPageFlip(overlays));
227 } 229 }
228 230
229 void DrmThread::RefreshNativeDisplays( 231 void DrmThread::RefreshNativeDisplays(
230 base::OnceCallback<void(const std::vector<DisplaySnapshot_Params>&)> 232 base::OnceCallback<void(const std::vector<DisplaySnapshot_Params>&)>
231 callback) { 233 callback) {
232 std::move(callback).Run(display_manager_->GetDisplays()); 234 std::move(callback).Run(display_manager_->GetDisplays());
233 } 235 }
234 236
235 void DrmThread::ConfigureNativeDisplay( 237 void DrmThread::ConfigureNativeDisplay(
236 int64_t id, 238 int64_t id,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 correction_matrix); 292 correction_matrix);
291 } 293 }
292 294
293 // DrmThread requires a BindingSet instead of a simple Binding because it will 295 // DrmThread requires a BindingSet instead of a simple Binding because it will
294 // be used from multiple threads in multiple processes. 296 // be used from multiple threads in multiple processes.
295 void DrmThread::AddBinding(ozone::mojom::DeviceCursorRequest request) { 297 void DrmThread::AddBinding(ozone::mojom::DeviceCursorRequest request) {
296 bindings_.AddBinding(this, std::move(request)); 298 bindings_.AddBinding(this, std::move(request));
297 } 299 }
298 300
299 } // namespace ui 301 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698