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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
index d01d2394ec6b8b15da685bb6c5b3e6c54a9fecb3..b1add6a3d74c6339fa8dc9555a2a7aaedf1401af 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
@@ -8,6 +8,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_sender.h"
+#include "ui/display/types/display_snapshot_mojo.h"
#include "ui/ozone/common/gpu/ozone_gpu_messages.h"
#include "ui/ozone/platform/drm/common/drm_util.h"
#include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h"
@@ -246,8 +247,9 @@ void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback(
}
void DrmThreadMessageProxy::OnRefreshNativeDisplaysCallback(
- const std::vector<DisplaySnapshot_Params>& displays) const {
- sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(displays));
+ MovableDisplaySnapshots displays) const {
+ sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(
+ CreateParamsFromSnapshot(displays)));
}
void DrmThreadMessageProxy::OnConfigureNativeDisplayCallback(
« 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