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

Unified Diff: ui/ozone/common/display_snapshot_proxy.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_snapshot_proxy.h ('k') | ui/ozone/common/display_util.h » ('j') | 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
deleted file mode 100644
index 0e9db0b5ce3d0bc270f0c1b46fd4a3e44aeae086..0000000000000000000000000000000000000000
--- a/ui/ozone/common/display_snapshot_proxy.cc
+++ /dev/null
@@ -1,54 +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_snapshot_proxy.h"
-
-#include "ui/ozone/common/display_mode_proxy.h"
-#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
-
-namespace ui {
-
-namespace {
-
-bool SameModes(const DisplayMode_Params& lhs, const DisplayMode_Params& rhs) {
- return lhs.size == rhs.size && lhs.is_interlaced == rhs.is_interlaced &&
- lhs.refresh_rate == rhs.refresh_rate;
-}
-
-} // namespace
-
-DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params)
- : DisplaySnapshot(params.display_id,
- params.has_proper_display_id,
- params.origin,
- params.physical_size,
- params.type,
- params.is_aspect_preserving_scaling,
- params.has_overscan,
- params.display_name,
- std::vector<const DisplayMode*>(),
- NULL,
- NULL),
- string_representation_(params.string_representation) {
- for (size_t i = 0; i < params.modes.size(); ++i) {
- modes_.push_back(new DisplayModeProxy(params.modes[i]));
-
- if (params.has_current_mode &&
- SameModes(params.modes[i], params.current_mode))
- current_mode_ = modes_.back();
-
- if (params.has_native_mode &&
- SameModes(params.modes[i], params.native_mode))
- native_mode_ = modes_.back();
- }
-}
-
-DisplaySnapshotProxy::~DisplaySnapshotProxy() {
-}
-
-std::string DisplaySnapshotProxy::ToString() const {
- return string_representation_;
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/common/display_snapshot_proxy.h ('k') | ui/ozone/common/display_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698