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

Unified Diff: ui/ozone/platform/drm/mus_thread_proxy.cc

Issue 2894523007: Use display::DisplayMode in ozone/drm/gpu (Closed)
Patch Set: 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
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..984ea7872598fbf5e09650d4284f46799d8c8fc1 100644
--- a/ui/ozone/platform/drm/mus_thread_proxy.cc
+++ b/ui/ozone/platform/drm/mus_thread_proxy.cc
@@ -8,6 +8,8 @@
#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "ui/display/types/display_snapshot_mojo.h"
dnicoara 2017/05/23 18:48:20 Is this include required?
+#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 +213,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;
}
« ui/ozone/platform/drm/gpu/screen_manager.cc ('K') | « 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