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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } | 521 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } |
522 | 522 |
523 FrameTimingTracker* frame_timing_tracker() { | 523 FrameTimingTracker* frame_timing_tracker() { |
524 return frame_timing_tracker_.get(); | 524 return frame_timing_tracker_.get(); |
525 } | 525 } |
526 | 526 |
527 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, | 527 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, |
528 const gfx::Vector2dF& delta, | 528 const gfx::Vector2dF& delta, |
529 const gfx::Point& viewport_point, | 529 const gfx::Point& viewport_point, |
530 bool is_wheel_scroll); | 530 bool is_direct_manipulation); |
531 | 531 |
532 // Record main frame timing information. | 532 // Record main frame timing information. |
533 // |start_of_main_frame_args| is the BeginFrameArgs of the beginning of the | 533 // |start_of_main_frame_args| is the BeginFrameArgs of the beginning of the |
534 // main frame (ie the frame that kicked off the main frame). | 534 // main frame (ie the frame that kicked off the main frame). |
535 // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that | 535 // |expected_next_main_frame_args| is the BeginFrameArgs of the frame that |
536 // follows the completion of the main frame (whether it is activation or some | 536 // follows the completion of the main frame (whether it is activation or some |
537 // other completion, such as early out). Note that if there is a main frame | 537 // other completion, such as early out). Note that if there is a main frame |
538 // scheduled in that frame, then this BeginFrameArgs will become the main | 538 // scheduled in that frame, then this BeginFrameArgs will become the main |
539 // frame args. However, if no such frame is scheduled, then this _would_ be | 539 // frame args. However, if no such frame is scheduled, then this _would_ be |
540 // the main frame args if it was scheduled. | 540 // the main frame args if it was scheduled. |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 780 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
781 | 781 |
782 scoped_ptr<Viewport> viewport_; | 782 scoped_ptr<Viewport> viewport_; |
783 | 783 |
784 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 784 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
785 }; | 785 }; |
786 | 786 |
787 } // namespace cc | 787 } // namespace cc |
788 | 788 |
789 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 789 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |