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

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

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 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
« no previous file with comments | « cc/debug/debug_export.h ('k') | cc/debug/layer_tree_debug_state.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LAP_TIMER_H_ 5 #ifndef CC_DEBUG_LAP_TIMER_H_
6 #define CC_DEBUG_LAP_TIMER_H_ 6 #define CC_DEBUG_LAP_TIMER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/cc_export.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 // LapTimer is used to calculate average times per "Lap" in perf tests. 14 // LapTimer is used to calculate average times per "Lap" in perf tests.
15 // Current() reports the time since the last call to Start(). 15 // Current() reports the time since the last call to Start().
16 // Store() adds the time since the last call to Start() to the accumulator, and 16 // Store() adds the time since the last call to Start() to the accumulator, and
17 // resets the start time to now. Stored() returns the accumulated time. 17 // resets the start time to now. Stored() returns the accumulated time.
18 // NextLap increments the lap counter, used in counting the per lap averages. 18 // NextLap increments the lap counter, used in counting the per lap averages.
19 // If you initialize the LapTimer with a non zero warmup_laps, it will ignore 19 // If you initialize the LapTimer with a non zero warmup_laps, it will ignore
20 // the times for that many laps at the start. 20 // the times for that many laps at the start.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 int remaining_no_check_laps_; 58 int remaining_no_check_laps_;
59 base::TimeDelta time_limit_; 59 base::TimeDelta time_limit_;
60 int check_interval_; 60 int check_interval_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(LapTimer); 62 DISALLOW_COPY_AND_ASSIGN(LapTimer);
63 }; 63 };
64 64
65 } // namespace cc 65 } // namespace cc
66 66
67 #endif // CC_DEBUG_LAP_TIMER_H_ 67 #endif // CC_DEBUG_LAP_TIMER_H_
OLDNEW
« no previous file with comments | « cc/debug/debug_export.h ('k') | cc/debug/layer_tree_debug_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698