Chromium Code Reviews| Index: cc/debug/frame_timing_tracker.h |
| diff --git a/cc/debug/frame_timing_tracker.h b/cc/debug/frame_timing_tracker.h |
| index 3364993197395c32be17c57e32e28445c2136565..54e89515e037b89dcc4e75dfdd496baeb0859b54 100644 |
| --- a/cc/debug/frame_timing_tracker.h |
| +++ b/cc/debug/frame_timing_tracker.h |
| @@ -13,9 +13,12 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/time/time.h" |
| #include "cc/base/cc_export.h" |
| +#include "cc/base/delayed_unique_notifier.h" |
| namespace cc { |
| +class LayerTreeHostImpl; |
| + |
| // This class maintains a history of timestamps and rect IDs to communicate |
| // frame events back to Blink |
| // TODO(mpb): Start using this. crbug.com/442554 |
| @@ -46,7 +49,8 @@ class CC_EXPORT FrameTimingTracker { |
| using MainFrameTimingSet = |
| base::hash_map<int, std::vector<MainFrameTimingEvent>>; |
|
MikeB
2015/05/27 21:07:38
int64_t as well.
|
| - static scoped_ptr<FrameTimingTracker> Create(); |
| + static scoped_ptr<FrameTimingTracker> Create( |
| + LayerTreeHostImpl* layer_tree_host_impl); |
| ~FrameTimingTracker(); |
| @@ -74,11 +78,16 @@ class CC_EXPORT FrameTimingTracker { |
| int source_frame_number); |
| private: |
| - FrameTimingTracker(); |
| + explicit FrameTimingTracker(LayerTreeHostImpl* layer_tree_host_impl); |
| + |
| + void PostEvents(); |
| scoped_ptr<CompositeTimingSet> composite_events_; |
| scoped_ptr<MainFrameTimingSet> main_frame_events_; |
| + LayerTreeHostImpl* layer_tree_host_impl_; |
| + DelayedUniqueNotifier post_events_notifier_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(FrameTimingTracker); |
| }; |