OLD | NEW |
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 if (!native_mode_ && !modes_.empty()) | 116 if (!native_mode_ && !modes_.empty()) |
117 native_mode_ = modes_.front(); | 117 native_mode_ = modes_.front(); |
118 } | 118 } |
119 | 119 |
120 DisplaySnapshotDri::~DisplaySnapshotDri() { | 120 DisplaySnapshotDri::~DisplaySnapshotDri() { |
121 } | 121 } |
122 | 122 |
123 std::string DisplaySnapshotDri::ToString() const { | 123 std::string DisplaySnapshotDri::ToString() const { |
124 return base::StringPrintf( | 124 return base::StringPrintf( |
125 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32 ", mode=%s, dim=%s]", | 125 "[type=%d, connector=%" PRIu32 ", crtc=%" PRIu32 ", mode=%s, dim=%s]", |
126 type_, | 126 type_, connector_, crtc_, |
127 connector_, | |
128 crtc_, | |
129 current_mode_ ? current_mode_->ToString().c_str() : "NULL", | 127 current_mode_ ? current_mode_->ToString().c_str() : "NULL", |
130 physical_size_.ToString().c_str()); | 128 physical_size_.ToString().c_str()); |
131 } | 129 } |
132 | 130 |
133 } // namespace ui | 131 } // namespace ui |
OLD | NEW |