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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |