OLD | NEW |
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 | 529 |
530 FrameTimingTracker* frame_timing_tracker() { | 530 FrameTimingTracker* frame_timing_tracker() { |
531 return frame_timing_tracker_.get(); | 531 return frame_timing_tracker_.get(); |
532 } | 532 } |
533 | 533 |
534 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, | 534 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, |
535 const gfx::Vector2dF& delta, | 535 const gfx::Vector2dF& delta, |
536 const gfx::Point& viewport_point, | 536 const gfx::Point& viewport_point, |
537 bool is_wheel_scroll); | 537 bool is_wheel_scroll); |
538 | 538 |
| 539 // Record main frame timing information. |
| 540 // |start_of_main_frame_args| is the BeginFrameArgs of the beginning of the |
| 541 // main frame (ie the frame that kicked off the main frame). |
| 542 // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that |
| 543 // follows the completion of the main frame (whether it is activation or some |
| 544 // other completion, such as early out). Note that if there is a main frame |
| 545 // scheduled in that frame, then this BeginFrameArgs will become the main |
| 546 // frame args. However, if no such frame is scheduled, then this _would_ be |
| 547 // the main frame args if it was scheduled. |
| 548 void RecordMainFrameTiming( |
| 549 const BeginFrameArgs& start_of_main_frame_args, |
| 550 const BeginFrameArgs& expected_next_main_frame_args); |
| 551 |
539 protected: | 552 protected: |
540 LayerTreeHostImpl( | 553 LayerTreeHostImpl( |
541 const LayerTreeSettings& settings, | 554 const LayerTreeSettings& settings, |
542 LayerTreeHostImplClient* client, | 555 LayerTreeHostImplClient* client, |
543 Proxy* proxy, | 556 Proxy* proxy, |
544 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 557 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
545 SharedBitmapManager* shared_bitmap_manager, | 558 SharedBitmapManager* shared_bitmap_manager, |
546 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 559 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
547 TaskGraphRunner* task_graph_runner, | 560 TaskGraphRunner* task_graph_runner, |
548 int id); | 561 int id); |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 772 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
760 | 773 |
761 scoped_ptr<Viewport> viewport_; | 774 scoped_ptr<Viewport> viewport_; |
762 | 775 |
763 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 776 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
764 }; | 777 }; |
765 | 778 |
766 } // namespace cc | 779 } // namespace cc |
767 | 780 |
768 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 781 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |