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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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_util.h ('k') | ui/ozone/common/gpu/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/display_util.cc
diff --git a/ui/ozone/common/display_util.cc b/ui/ozone/common/display_util.cc
deleted file mode 100644
index 784656eac1510aa21bac28f1d9abd5e1ccc4194f..0000000000000000000000000000000000000000
--- a/ui/ozone/common/display_util.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/ozone/common/display_util.h"
-
-#include "ui/display/types/display_mode.h"
-#include "ui/display/types/display_snapshot.h"
-
-namespace ui {
-
-DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode) {
- DisplayMode_Params params;
- params.size = mode.size();
- params.is_interlaced = mode.is_interlaced();
- params.refresh_rate = mode.refresh_rate();
-
- return params;
-}
-
-DisplaySnapshot_Params GetDisplaySnapshotParams(
- const DisplaySnapshot& display) {
- DisplaySnapshot_Params params;
- params.display_id = display.display_id();
- params.has_proper_display_id = display.has_proper_display_id();
- params.origin = display.origin();
- params.physical_size = display.physical_size();
- params.type = display.type();
- params.is_aspect_preserving_scaling = display.is_aspect_preserving_scaling();
- params.has_overscan = display.has_overscan();
- params.display_name = display.display_name();
- for (size_t i = 0; i < display.modes().size(); ++i)
- params.modes.push_back(GetDisplayModeParams(*display.modes()[i]));
-
- params.has_current_mode = display.current_mode() != NULL;
- if (params.has_current_mode)
- params.current_mode = GetDisplayModeParams(*display.current_mode());
-
- params.has_native_mode = display.native_mode() != NULL;
- if (params.has_native_mode)
- params.native_mode = GetDisplayModeParams(*display.native_mode());
-
- params.string_representation = display.ToString();
-
- return params;
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/common/display_util.h ('k') | ui/ozone/common/gpu/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698