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 9bd3555cd4842e2194d1c9f5ef91292f2872a170..1b0d83fb86d3ff2aa2f6fd35fb276cff857ad07e 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc |
@@ -12,6 +12,7 @@ |
#include "base/memory/ptr_util.h" |
#include "base/message_loop/message_loop.h" |
#include "base/threading/thread_task_runner_handle.h" |
+#include "ui/display/types/display_mode.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" |
@@ -233,11 +234,11 @@ void DrmThread::RefreshNativeDisplays( |
void DrmThread::ConfigureNativeDisplay( |
int64_t id, |
- const DisplayMode_Params& mode, |
+ std::unique_ptr<const display::DisplayMode> mode, |
const gfx::Point& origin, |
base::OnceCallback<void(int64_t, bool)> callback) { |
- std::move(callback).Run(id, |
- display_manager_->ConfigureDisplay(id, mode, origin)); |
+ std::move(callback).Run( |
+ id, display_manager_->ConfigureDisplay(id, *mode, origin)); |
} |
void DrmThread::DisableNativeDisplay( |