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

Unified Diff: ui/ozone/common/display_snapshot_proxy.cc

Issue 2928483003: Delete unnecessary mode code in ozone/drm (Closed)
Patch Set: Created 3 years, 6 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/common/display_mode_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/display_snapshot_proxy.cc
diff --git a/ui/ozone/common/display_snapshot_proxy.cc b/ui/ozone/common/display_snapshot_proxy.cc
index 143b34ec79a334f3a6b54fa99e90f7aefbbc1227..415d53f7886d0092cd0af8fe85bd6adf1bf7906c 100644
--- a/ui/ozone/common/display_snapshot_proxy.cc
+++ b/ui/ozone/common/display_snapshot_proxy.cc
@@ -2,13 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/memory/ptr_util.h"
-
#include "ui/ozone/common/display_snapshot_proxy.h"
#include <stddef.h>
-#include "ui/ozone/common/display_mode_proxy.h"
+#include "base/memory/ptr_util.h"
+#include "ui/display/types/display_mode.h"
#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
namespace ui {
@@ -39,7 +38,9 @@ DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params)
NULL),
string_representation_(params.string_representation) {
for (size_t i = 0; i < params.modes.size(); ++i) {
- modes_.push_back(base::MakeUnique<DisplayModeProxy>(params.modes[i]));
+ modes_.push_back(base::MakeUnique<display::DisplayMode>(
+ params.modes[i].size, params.modes[i].is_interlaced,
+ params.modes[i].refresh_rate));
if (params.has_current_mode &&
SameModes(params.modes[i], params.current_mode))
« no previous file with comments | « ui/ozone/common/display_mode_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698