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

Side by Side Diff: cc/debug/ring_buffer.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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 | « cc/debug/rendering_stats_instrumentation.cc ('k') | cc/debug/traced_display_item_list.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_DEBUG_RING_BUFFER_H_ 5 #ifndef CC_DEBUG_RING_BUFFER_H_
6 #define CC_DEBUG_RING_BUFFER_H_ 6 #define CC_DEBUG_RING_BUFFER_H_
7 7
8 #include <stddef.h>
9
8 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
9 12
10 namespace cc { 13 namespace cc {
11 14
12 template<typename T, size_t kSize> 15 template<typename T, size_t kSize>
13 class RingBuffer { 16 class RingBuffer {
14 public: 17 public:
15 RingBuffer() : current_index_(0) {} 18 RingBuffer() : current_index_(0) {}
16 19
17 size_t BufferSize() const { 20 size_t BufferSize() const {
18 return kSize; 21 return kSize;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 114
112 T buffer_[kSize]; 115 T buffer_[kSize];
113 size_t current_index_; 116 size_t current_index_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(RingBuffer); 118 DISALLOW_COPY_AND_ASSIGN(RingBuffer);
116 }; 119 };
117 120
118 } // namespace cc 121 } // namespace cc
119 122
120 #endif // CC_DEBUG_RING_BUFFER_H_ 123 #endif // CC_DEBUG_RING_BUFFER_H_
OLDNEW
« no previous file with comments | « cc/debug/rendering_stats_instrumentation.cc ('k') | cc/debug/traced_display_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698