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

Side by Side Diff: cc/debug/frame_rate_counter.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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/debug/overdraw_metrics.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/debug/frame_rate_counter.h" 5 #include "cc/debug/frame_rate_counter.h"
6 6
7 #include <algorithm>
7 #include <limits> 8 #include <limits>
8 9
9 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
10 #include "cc/trees/proxy.h" 11 #include "cc/trees/proxy.h"
11 12
12 namespace cc { 13 namespace cc {
13 14
14 // The following constants are measured in seconds. 15 // The following constants are measured in seconds.
15 16
16 // Two thresholds (measured in seconds) that describe what is considered to be a 17 // Two thresholds (measured in seconds) that describe what is considered to be a
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 if (frame_count) { 130 if (frame_count) {
130 DCHECK_GT(frame_times_total, 0.0); 131 DCHECK_GT(frame_times_total, 0.0);
131 average_fps = frame_count / frame_times_total; 132 average_fps = frame_count / frame_times_total;
132 } 133 }
133 134
134 return average_fps; 135 return average_fps;
135 } 136 }
136 137
137 } // namespace cc 138 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/fake_web_graphics_context_3d.h ('k') | cc/debug/overdraw_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698