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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread_message_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/gpu/drm_thread_message_proxy.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
index 18ccede4c35c28f72c9c5199071c934d414a0348..f5b60ea0f7a23f8457a4167dedcec281edc7a55e 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc
@@ -4,10 +4,13 @@
#include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h"
+#include "base/task_runner_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_sender.h"
+#include "ui/display/types/display_snapshot_mojo.h"
dnicoara 2017/05/23 18:48:20 Is this required?
rjkroege 2017/05/23 22:08:18 nope. part of the other CL that's not done yet. Re
#include "ui/ozone/common/gpu/ozone_gpu_messages.h"
+#include "ui/ozone/platform/drm/common/drm_util.h"
#include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h"
#include "ui/ozone/platform/drm/gpu/proxy_helpers.h"
@@ -136,14 +139,16 @@ void DrmThreadMessageProxy::OnConfigureNativeDisplay(
const DisplayMode_Params& mode,
const gfx::Point& origin) {
DCHECK(drm_thread_->IsRunning());
+ auto dmode = CreateDisplayModeFromParams(mode);
auto callback =
base::BindOnce(&DrmThreadMessageProxy::OnConfigureNativeDisplayCallback,
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(dmode),
+ origin, std::move(safe_callback)));
}
void DrmThreadMessageProxy::OnDisableNativeDisplay(int64_t id) {

Powered by Google App Engine
This is Rietveld 408576698