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

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

Issue 363003002: Add duration estimation data to RenderingStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CC_EXPORT Created 6 years, 5 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/cc_tests.gyp ('k') | cc/debug/benchmark_instrumentation.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BENCHMARK_INSTRUMENTATION_H_ 5 #ifndef CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_
6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ 6 #define CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_
7 7
8 #include "cc/debug/rendering_stats.h" 8 #include "cc/debug/rendering_stats.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 23 matching lines...) Expand all
34 ~ScopedBeginFrameTask() { 34 ~ScopedBeginFrameTask() {
35 TRACE_EVENT_END0(internal::kCategory, event_name_); 35 TRACE_EVENT_END0(internal::kCategory, event_name_);
36 } 36 }
37 37
38 private: 38 private:
39 const char* event_name_; 39 const char* event_name_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask); 41 DISALLOW_COPY_AND_ASSIGN(ScopedBeginFrameTask);
42 }; 42 };
43 43
44 void IssueMainThreadRenderingStatsEvent(const MainThreadRenderingStats& stats); 44 void IssueMainThreadRenderingStatsEvent(
45 void IssueImplThreadRenderingStatsEvent(const ImplThreadRenderingStats& stats); 45 const RenderingStats::MainThreadRenderingStats& stats);
46 void IssueImplThreadRenderingStatsEvent(
47 const RenderingStats::ImplThreadRenderingStats& stats);
46 48
47 } // namespace benchmark_instrumentation 49 } // namespace benchmark_instrumentation
48 } // namespace cc 50 } // namespace cc
49 51
50 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_ 52 #endif // CC_DEBUG_BENCHMARK_INSTRUMENTATION_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/debug/benchmark_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698