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

Side by Side Diff: ui/ozone/platform/dri/display_snapshot_dri.cc

Issue 845383002: [Ozone-DRI] Make sure the display configuration is up-to-date on the GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/dri/dri_gpu_platform_support.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/platform/dri/display_snapshot_dri.h" 5 #include "ui/ozone/platform/dri/display_snapshot_dri.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <xf86drmMode.h> 9 #include <xf86drmMode.h>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // since it should be the best mode. 120 // since it should be the best mode.
121 if (!native_mode_ && !modes_.empty()) 121 if (!native_mode_ && !modes_.empty())
122 native_mode_ = modes_.front(); 122 native_mode_ = modes_.front();
123 } 123 }
124 124
125 DisplaySnapshotDri::~DisplaySnapshotDri() { 125 DisplaySnapshotDri::~DisplaySnapshotDri() {
126 } 126 }
127 127
128 std::string DisplaySnapshotDri::ToString() const { 128 std::string DisplaySnapshotDri::ToString() const {
129 return base::StringPrintf( 129 return base::StringPrintf(
130 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32 ", mode=%s, dim=%s]", 130 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32
131 type_, connector_, crtc_, 131 ", origin=%s, mode=%s, dim=%s]",
132 type_, connector_, crtc_, origin_.ToString().c_str(),
132 current_mode_ ? current_mode_->ToString().c_str() : "NULL", 133 current_mode_ ? current_mode_->ToString().c_str() : "NULL",
133 physical_size_.ToString().c_str()); 134 physical_size_.ToString().c_str());
134 } 135 }
135 136
136 } // namespace ui 137 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/dri/dri_gpu_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698