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

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

Issue 1309273005: native_viewport support for ozone (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 3 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/ozone/BUILD.gn ('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 {
(...skipping 12 matching lines...) Expand all
23 mode_params.refresh_rate >= 60.0f; 23 mode_params.refresh_rate >= 60.0f;
24 } 24 }
25 25
26 } // namespace 26 } // namespace
27 27
28 DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params) 28 DisplaySnapshotProxy::DisplaySnapshotProxy(const DisplaySnapshot_Params& params)
29 : DisplaySnapshot(params.display_id, 29 : DisplaySnapshot(params.display_id,
30 params.origin, 30 params.origin,
31 params.physical_size, 31 params.physical_size,
32 params.type, 32 params.type,
33 params.is_aspect_preserving_scaling,
34 params.has_overscan,
35 params.display_name,
36 std::vector<const DisplayMode*>(), 33 std::vector<const DisplayMode*>(),
37 NULL, 34 NULL,
38 NULL), 35 NULL),
39 string_representation_(params.string_representation) { 36 string_representation_(params.string_representation) {
40 for (size_t i = 0; i < params.modes.size(); ++i) { 37 for (size_t i = 0; i < params.modes.size(); ++i) {
41 const DisplayMode_Params& mode_params = params.modes[i]; 38 const DisplayMode_Params& mode_params = params.modes[i];
42 if (IsModeBlackListed(mode_params)) 39 if (IsModeBlackListed(mode_params))
43 continue; 40 continue;
44 modes_.push_back(new DisplayModeProxy(mode_params)); 41 modes_.push_back(new DisplayModeProxy(mode_params));
45 42
(...skipping 10 matching lines...) Expand all
56 } 53 }
57 54
58 DisplaySnapshotProxy::~DisplaySnapshotProxy() { 55 DisplaySnapshotProxy::~DisplaySnapshotProxy() {
59 } 56 }
60 57
61 std::string DisplaySnapshotProxy::ToString() const { 58 std::string DisplaySnapshotProxy::ToString() const {
62 return string_representation_; 59 return string_representation_;
63 } 60 }
64 61
65 } // namespace ui 62 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/BUILD.gn ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698