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

Side by Side Diff: ui/ozone/common/display_snapshot_proxy.cc

Issue 667753002: Treat displays with and without EDID the same way (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/display/types/display_snapshot.cc ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/common/display_snapshot_proxy.h" 5 #include "ui/ozone/common/display_snapshot_proxy.h"
6 6
7 #include "ui/ozone/common/display_mode_proxy.h" 7 #include "ui/ozone/common/display_mode_proxy.h"
8 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 8 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 namespace { 12 namespace {
13 13
14 bool SameModes(const DisplayMode_Params& lhs, const DisplayMode_Params& rhs) { 14 bool SameModes(const DisplayMode_Params& lhs, const DisplayMode_Params& rhs) {
15 return lhs.size == rhs.size && lhs.is_interlaced == rhs.is_interlaced && 15 return lhs.size == rhs.size && lhs.is_interlaced == rhs.is_interlaced &&
16 lhs.refresh_rate == rhs.refresh_rate; 16 lhs.refresh_rate == rhs.refresh_rate;
17 } 17 }
18 18
19 } // namespace 19 } // namespace
20 20
21 DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params) 21 DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params)
22 : DisplaySnapshot(params.display_id, 22 : DisplaySnapshot(params.display_id,
23 params.has_proper_display_id,
24 params.origin, 23 params.origin,
25 params.physical_size, 24 params.physical_size,
26 params.type, 25 params.type,
27 params.is_aspect_preserving_scaling, 26 params.is_aspect_preserving_scaling,
28 params.has_overscan, 27 params.has_overscan,
29 params.display_name, 28 params.display_name,
30 std::vector<const DisplayMode*>(), 29 std::vector<const DisplayMode*>(),
31 NULL, 30 NULL,
32 NULL), 31 NULL),
33 string_representation_(params.string_representation) { 32 string_representation_(params.string_representation) {
(...skipping 11 matching lines...) Expand all
45 } 44 }
46 45
47 DisplaySnapshotProxy::~DisplaySnapshotProxy() { 46 DisplaySnapshotProxy::~DisplaySnapshotProxy() {
48 } 47 }
49 48
50 std::string DisplaySnapshotProxy::ToString() const { 49 std::string DisplaySnapshotProxy::ToString() const {
51 return string_representation_; 50 return string_representation_;
52 } 51 }
53 52
54 } // namespace ui 53 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/types/display_snapshot.cc ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698