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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread.cc

Issue 2894523007: Use display::DisplayMode in ozone/drm/gpu (Closed)
Patch Set: review nits Created 3 years, 7 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 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(
« 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