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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1137823002: Pass collected frame timing events to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed implementing virtual function on Android html_viewer. Created 5 years, 6 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/trees/layer_tree_host_client.h ('k') | cc/trees/layer_tree_host_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 base::TimeDelta delay) = 0; 120 base::TimeDelta delay) = 0;
121 virtual void DidActivateSyncTree() = 0; 121 virtual void DidActivateSyncTree() = 0;
122 virtual void DidPrepareTiles() = 0; 122 virtual void DidPrepareTiles() = 0;
123 123
124 // Called when page scale animation has completed on the impl thread. 124 // Called when page scale animation has completed on the impl thread.
125 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; 125 virtual void DidCompletePageScaleAnimationOnImplThread() = 0;
126 126
127 // Called when output surface asks for a draw. 127 // Called when output surface asks for a draw.
128 virtual void OnDrawForOutputSurface() = 0; 128 virtual void OnDrawForOutputSurface() = 0;
129 129
130 virtual void PostFrameTimingEventsOnImplThread(
131 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
132 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0;
133
130 protected: 134 protected:
131 virtual ~LayerTreeHostImplClient() {} 135 virtual ~LayerTreeHostImplClient() {}
132 }; 136 };
133 137
134 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering 138 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
135 // state. 139 // state.
136 class CC_EXPORT LayerTreeHostImpl 140 class CC_EXPORT LayerTreeHostImpl
137 : public InputHandler, 141 : public InputHandler,
138 public RendererClient, 142 public RendererClient,
139 public TileManagerClient, 143 public TileManagerClient,
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that 536 // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that
533 // follows the completion of the main frame (whether it is activation or some 537 // follows the completion of the main frame (whether it is activation or some
534 // other completion, such as early out). Note that if there is a main frame 538 // other completion, such as early out). Note that if there is a main frame
535 // scheduled in that frame, then this BeginFrameArgs will become the main 539 // scheduled in that frame, then this BeginFrameArgs will become the main
536 // frame args. However, if no such frame is scheduled, then this _would_ be 540 // frame args. However, if no such frame is scheduled, then this _would_ be
537 // the main frame args if it was scheduled. 541 // the main frame args if it was scheduled.
538 void RecordMainFrameTiming( 542 void RecordMainFrameTiming(
539 const BeginFrameArgs& start_of_main_frame_args, 543 const BeginFrameArgs& start_of_main_frame_args,
540 const BeginFrameArgs& expected_next_main_frame_args); 544 const BeginFrameArgs& expected_next_main_frame_args);
541 545
546 // Post the given frame timing events to the requester.
547 void PostFrameTimingEvents(
548 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
549 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events);
550
542 protected: 551 protected:
543 LayerTreeHostImpl( 552 LayerTreeHostImpl(
544 const LayerTreeSettings& settings, 553 const LayerTreeSettings& settings,
545 LayerTreeHostImplClient* client, 554 LayerTreeHostImplClient* client,
546 Proxy* proxy, 555 Proxy* proxy,
547 RenderingStatsInstrumentation* rendering_stats_instrumentation, 556 RenderingStatsInstrumentation* rendering_stats_instrumentation,
548 SharedBitmapManager* shared_bitmap_manager, 557 SharedBitmapManager* shared_bitmap_manager,
549 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 558 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
550 TaskGraphRunner* task_graph_runner, 559 TaskGraphRunner* task_graph_runner,
551 int id); 560 int id);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 773 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
765 774
766 scoped_ptr<Viewport> viewport_; 775 scoped_ptr<Viewport> viewport_;
767 776
768 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 777 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
769 }; 778 };
770 779
771 } // namespace cc 780 } // namespace cc
772 781
773 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 782 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_client.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698