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

Unified Diff: cc/debug/rendering_stats_instrumentation.h

Issue 289163004: cc: fix another data race in RenderingStatsInstrumentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | cc/debug/rendering_stats_instrumentation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/rendering_stats_instrumentation.h
diff --git a/cc/debug/rendering_stats_instrumentation.h b/cc/debug/rendering_stats_instrumentation.h
index 3a02fe98a8070f2d175ae88d745e2c3bcd0c579e..e1061dc400d1301462509118fe44656dd09214a2 100644
--- a/cc/debug/rendering_stats_instrumentation.h
+++ b/cc/debug/rendering_stats_instrumentation.h
@@ -18,20 +18,19 @@ class CC_EXPORT RenderingStatsInstrumentation {
static scoped_ptr<RenderingStatsInstrumentation> Create();
virtual ~RenderingStatsInstrumentation();
- // Return current main thread rendering stats.
- const MainThreadRenderingStats& main_thread_rendering_stats() {
- return main_stats_;
- }
- // Return current impl thread rendering stats.
- const ImplThreadRenderingStats& impl_thread_rendering_stats() {
- return impl_stats_;
- }
+ // Return copy of current main thread rendering stats.
+ MainThreadRenderingStats main_thread_rendering_stats();
+
+ // Return copy of current impl thread rendering stats.
+ ImplThreadRenderingStats impl_thread_rendering_stats();
+
// Return the accumulated, combined rendering stats.
RenderingStats GetRenderingStats();
// Add current main thread rendering stats to accumulator and
// clear current stats.
void AccumulateAndClearMainThreadStats();
+
// Add current impl thread rendering stats to accumulator and
// clear current stats.
void AccumulateAndClearImplThreadStats();
« no previous file with comments | « no previous file | cc/debug/rendering_stats_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698