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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread.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.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_message_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.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 8df0ba7136c659829baa05733fc23178cfbc5464..fa0fa43e3f4a5ab0cd7e8220b43d8efd3440ed03 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -13,6 +13,8 @@
#include "base/message_loop/message_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "ui/display/types/display_mode.h"
+#include "ui/display/types/display_snapshot_mojo.h"
+#include "ui/ozone/common/display_snapshot_proxy.h"
#include "ui/ozone/platform/drm/common/drm_util.h"
#include "ui/ozone/platform/drm/gpu/drm_buffer.h"
#include "ui/ozone/platform/drm/gpu/drm_device_generator.h"
@@ -229,9 +231,10 @@ void DrmThread::CheckOverlayCapabilities(
}
void DrmThread::RefreshNativeDisplays(
- base::OnceCallback<void(const std::vector<DisplaySnapshot_Params>&)>
- callback) {
- std::move(callback).Run(display_manager_->GetDisplays());
+ base::OnceCallback<void(MovableDisplaySnapshots)> callback) {
+ auto snapshots =
+ CreateMovableDisplaySnapshotsFromParams(display_manager_->GetDisplays());
+ std::move(callback).Run(std::move(snapshots));
}
void DrmThread::ConfigureNativeDisplay(
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698