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

Unified Diff: ui/ozone/platform/drm/host/drm_display_host.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/host/drm_display_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_display_host.cc b/ui/ozone/platform/drm/host/drm_display_host.cc
index daba8d75857a1b93d674c4431062946672e708d6..463c108f9c261e4fcf09408e1fc28d10d8da9db6 100644
--- a/ui/ozone/platform/drm/host/drm_display_host.cc
+++ b/ui/ozone/platform/drm/host/drm_display_host.cc
@@ -10,22 +10,11 @@
#include "base/threading/thread_task_runner_handle.h"
#include "ui/display/types/display_mode.h"
#include "ui/ozone/common/display_snapshot_proxy.h"
+#include "ui/ozone/platform/drm/common/drm_util.h"
#include "ui/ozone/platform/drm/host/gpu_thread_adapter.h"
namespace ui {
-namespace {
-
-DisplayMode_Params GetDisplayModeParams(const display::DisplayMode& mode) {
- DisplayMode_Params params;
- params.size = mode.size();
- params.is_interlaced = mode.is_interlaced();
- params.refresh_rate = mode.refresh_rate();
- return params;
-}
-
-} // namespace
-
DrmDisplayHost::DrmDisplayHost(GpuThreadAdapter* sender,
const DisplaySnapshot_Params& params,
bool is_dummy)

Powered by Google App Engine
This is Rietveld 408576698