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

Unified Diff: ui/ozone/platform/drm/mus_thread_proxy.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/host/drm_display_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/mus_thread_proxy.cc
diff --git a/ui/ozone/platform/drm/mus_thread_proxy.cc b/ui/ozone/platform/drm/mus_thread_proxy.cc
index 204c1fd3166bba2f786ad2bc1faf730247eaa70a..a28e9009aac46dedfaf7b02b4f121566672c6d71 100644
--- a/ui/ozone/platform/drm/mus_thread_proxy.cc
+++ b/ui/ozone/platform/drm/mus_thread_proxy.cc
@@ -8,6 +8,7 @@
#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "ui/ozone/platform/drm/common/drm_util.h"
#include "ui/ozone/platform/drm/gpu/drm_thread.h"
#include "ui/ozone/platform/drm/gpu/proxy_helpers.h"
#include "ui/ozone/platform/drm/host/drm_display_host_manager.h"
@@ -211,19 +212,21 @@ bool MusThreadProxy::GpuRefreshNativeDisplays() {
}
bool MusThreadProxy::GpuConfigureNativeDisplay(int64_t id,
- const DisplayMode_Params& mode,
+ const DisplayMode_Params& pmode,
const gfx::Point& origin) {
DCHECK(drm_thread_->IsRunning());
DCHECK(on_window_server_thread_.CalledOnValidThread());
+ auto mode = CreateDisplayModeFromParams(pmode);
auto callback =
base::BindOnce(&MusThreadProxy::GpuConfigureNativeDisplayCallback,
weak_ptr_factory_.GetWeakPtr());
auto safe_callback = CreateSafeOnceCallback(std::move(callback));
drm_thread_->task_runner()->PostTask(
- FROM_HERE, base::BindOnce(&DrmThread::ConfigureNativeDisplay,
- base::Unretained(drm_thread_), id, mode, origin,
- std::move(safe_callback)));
+ FROM_HERE,
+ base::BindOnce(&DrmThread::ConfigureNativeDisplay,
+ base::Unretained(drm_thread_), id, std::move(mode), origin,
+ std::move(safe_callback)));
return true;
}
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698