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

Side by Side Diff: webrtc/system_wrappers/interface/aligned_array.h

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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 | « webrtc/modules/video_coding/main/test/release_test.h ('k') | webrtc/test/fake_audio_device.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 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 T& At(int row, int col) { 61 T& At(int row, int col) {
62 CHECK_LE(col, cols_); 62 CHECK_LE(col, cols_);
63 return Row(row)[col]; 63 return Row(row)[col];
64 } 64 }
65 65
66 const T& At(int row, int col) const { 66 const T& At(int row, int col) const {
67 CHECK_LE(col, cols_); 67 CHECK_LE(col, cols_);
68 return Row(row)[col]; 68 return Row(row)[col];
69 } 69 }
70 70
71 int rows() const {
Ben Chan 2015/06/17 14:48:56 As a helper class, the rows() and cols() getters s
Peter Kasting 2015/06/17 19:47:29 No one called these. I have no opposition to addi
kjellander_webrtc 2015/06/18 08:22:46 Since it seems there's code that uses them outside
72 return rows_;
73 }
74
75 int cols() const {
76 return cols_;
77 }
78
79 private: 71 private:
80 int rows_; 72 int rows_;
81 int cols_; 73 int cols_;
82 int alignment_; 74 int alignment_;
83 T** head_row_; 75 T** head_row_;
84 }; 76 };
85 77
86 } // namespace webrtc 78 } // namespace webrtc
87 79
88 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_ARRAY_ 80 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_ALIGNED_ARRAY_
89 81
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/test/release_test.h ('k') | webrtc/test/fake_audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698