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

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

Issue 698293002: ozone: Add PRESUBMIT.py to check patch formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/platform/dri/crtc_controller.cc ('k') | ui/ozone/platform/dri/dri_cursor.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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/crtc_controller.cc ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698