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

Unified Diff: cc/debug/lap_timer.h

Issue 279183002: Use LapTimer in rasterize_and_record micro benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add CC_EXPORT to LapTimer class. Created 6 years, 7 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/cc_tests.gyp ('k') | cc/debug/lap_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/lap_timer.h
diff --git a/cc/test/lap_timer.h b/cc/debug/lap_timer.h
similarity index 93%
rename from cc/test/lap_timer.h
rename to cc/debug/lap_timer.h
index 57ad322ad174de6d921c7f720045a12fbdd51840..41d95fc61b4c522afe344cfa64506369e5ba78ff 100644
--- a/cc/test/lap_timer.h
+++ b/cc/debug/lap_timer.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_TEST_LAP_TIMER_H_
-#define CC_TEST_LAP_TIMER_H_
+#ifndef CC_DEBUG_LAP_TIMER_H_
+#define CC_DEBUG_LAP_TIMER_H_
#include "base/time/time.h"
+#include "cc/base/cc_export.h"
namespace cc {
@@ -19,7 +20,7 @@ namespace cc {
// If you set the time_limit then you can use HasTimeLimitExpired() to see if
// the current accumulated time has crossed that threshold, with an optimization
// that it only tests this every check_interval laps.
-class LapTimer {
+class CC_EXPORT LapTimer {
public:
LapTimer(int warmup_laps, base::TimeDelta time_limit, int check_interval);
// Resets the timer back to it's starting state.
@@ -60,4 +61,4 @@ class LapTimer {
} // namespace cc
-#endif // CC_TEST_LAP_TIMER_H_
+#endif // CC_DEBUG_LAP_TIMER_H_
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/debug/lap_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698