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

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

Issue 2930163002: Convert ozone/drm DisplaySnapshot_Param to DisplaySnapshotMojo (Closed)
Patch Set: review nits 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_message_proxy.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h"
6 6
7 #include "base/task_runner_util.h" 7 #include "base/task_runner_util.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
11 #include "ui/display/types/display_snapshot_mojo.h"
11 #include "ui/ozone/common/gpu/ozone_gpu_messages.h" 12 #include "ui/ozone/common/gpu/ozone_gpu_messages.h"
12 #include "ui/ozone/platform/drm/common/drm_util.h" 13 #include "ui/ozone/platform/drm/common/drm_util.h"
13 #include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h" 14 #include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h"
14 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h" 15 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h"
15 16
16 namespace ui { 17 namespace ui {
17 18
18 DrmThreadMessageProxy::DrmThreadMessageProxy() : weak_ptr_factory_(this) {} 19 DrmThreadMessageProxy::DrmThreadMessageProxy() : weak_ptr_factory_(this) {}
19 20
20 DrmThreadMessageProxy::~DrmThreadMessageProxy() {} 21 DrmThreadMessageProxy::~DrmThreadMessageProxy() {}
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 240
240 void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback( 241 void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback(
241 gfx::AcceleratedWidget widget, 242 gfx::AcceleratedWidget widget,
242 const std::vector<OverlayCheck_Params>& overlays, 243 const std::vector<OverlayCheck_Params>& overlays,
243 const std::vector<OverlayCheckReturn_Params>& returns) const { 244 const std::vector<OverlayCheckReturn_Params>& returns) const {
244 sender_->Send( 245 sender_->Send(
245 new OzoneHostMsg_OverlayCapabilitiesReceived(widget, overlays, returns)); 246 new OzoneHostMsg_OverlayCapabilitiesReceived(widget, overlays, returns));
246 } 247 }
247 248
248 void DrmThreadMessageProxy::OnRefreshNativeDisplaysCallback( 249 void DrmThreadMessageProxy::OnRefreshNativeDisplaysCallback(
249 const std::vector<DisplaySnapshot_Params>& displays) const { 250 MovableDisplaySnapshots displays) const {
250 sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(displays)); 251 sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(
252 CreateParamsFromSnapshot(displays)));
251 } 253 }
252 254
253 void DrmThreadMessageProxy::OnConfigureNativeDisplayCallback( 255 void DrmThreadMessageProxy::OnConfigureNativeDisplayCallback(
254 int64_t display_id, 256 int64_t display_id,
255 bool success) const { 257 bool success) const {
256 sender_->Send(new OzoneHostMsg_DisplayConfigured(display_id, success)); 258 sender_->Send(new OzoneHostMsg_DisplayConfigured(display_id, success));
257 } 259 }
258 260
259 void DrmThreadMessageProxy::OnDisableNativeDisplayCallback(int64_t display_id, 261 void DrmThreadMessageProxy::OnDisableNativeDisplayCallback(int64_t display_id,
260 bool success) const { 262 bool success) const {
(...skipping 15 matching lines...) Expand all
276 display::HDCPState state) const { 278 display::HDCPState state) const {
277 sender_->Send(new OzoneHostMsg_HDCPStateReceived(display_id, success, state)); 279 sender_->Send(new OzoneHostMsg_HDCPStateReceived(display_id, success, state));
278 } 280 }
279 281
280 void DrmThreadMessageProxy::OnSetHDCPStateCallback(int64_t display_id, 282 void DrmThreadMessageProxy::OnSetHDCPStateCallback(int64_t display_id,
281 bool success) const { 283 bool success) const {
282 sender_->Send(new OzoneHostMsg_HDCPStateUpdated(display_id, success)); 284 sender_->Send(new OzoneHostMsg_HDCPStateUpdated(display_id, success));
283 } 285 }
284 286
285 } // namespace ui 287 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h ('k') | ui/ozone/platform/drm/mus_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698