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

Unified Diff: cc/ring_buffer.h

Issue 12149004: [cc] Show GPU memory usage and overage below FPS counter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/memory_history.cc ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ring_buffer.h
diff --git a/cc/ring_buffer.h b/cc/ring_buffer.h
index 84283a9f863a293c1574673425f0dda1eb295cd2..929d74cb0e91e2d28e861c77a8bce375eea8794d 100644
--- a/cc/ring_buffer.h
+++ b/cc/ring_buffer.h
@@ -31,7 +31,7 @@ class RingBuffer {
// n = 0 returns the oldest value and
// n = bufferSize() - 1 returns the most recent value.
- T ReadBuffer(size_t n) const {
+ const T& ReadBuffer(size_t n) const {
DCHECK(IsFilledIndex(n));
return buffer_[BufferIndex(n)];
}
« no previous file with comments | « cc/memory_history.cc ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698