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

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

Issue 13065006: cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add operator= for DrawingState back as well Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.h ('k') | cc/input/pinch_zoom_scrollbar.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 "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return Iterator(*this, kSize - 1); 106 return Iterator(*this, kSize - 1);
107 } 107 }
108 108
109 private: 109 private:
110 inline size_t BufferIndex(size_t n) const { 110 inline size_t BufferIndex(size_t n) const {
111 return (current_index_ + n) % kSize; 111 return (current_index_ + n) % kSize;
112 } 112 }
113 113
114 T buffer_[kSize]; 114 T buffer_[kSize];
115 size_t current_index_; 115 size_t current_index_;
116
117 DISALLOW_COPY_AND_ASSIGN(RingBuffer);
116 }; 118 };
117 119
118 } // namespace cc 120 } // namespace cc
119 121
120 #endif // CC_DEBUG_RING_BUFFER_H_ 122 #endif // CC_DEBUG_RING_BUFFER_H_
OLDNEW
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.h ('k') | cc/input/pinch_zoom_scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698