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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); | 420 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); |
421 | 421 |
422 gfx::Vector2dF accumulated_root_overscroll() const { | 422 gfx::Vector2dF accumulated_root_overscroll() const { |
423 return accumulated_root_overscroll_; | 423 return accumulated_root_overscroll_; |
424 } | 424 } |
425 | 425 |
426 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 426 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
427 | 427 |
428 void SetTreePriority(TreePriority priority); | 428 void SetTreePriority(TreePriority priority); |
429 | 429 |
430 void UpdateCurrentFrameTime(); | 430 void UpdateCurrentBeginFrameArgs(const BeginFrameArgs& args); |
431 void ResetCurrentFrameTimeForNextFrame(); | 431 void ResetCurrentBeginFrameArgsForNextFrame(); |
432 virtual base::TimeTicks CurrentFrameTimeTicks(); | 432 virtual BeginFrameArgs CurrentBeginFrameArgs() const; |
433 | 433 |
434 // Expected time between two begin impl frame calls. | 434 // Expected time between two begin impl frame calls. |
435 base::TimeDelta begin_impl_frame_interval() const { | 435 base::TimeDelta begin_impl_frame_interval() const { |
436 return begin_impl_frame_interval_; | 436 return begin_impl_frame_interval_; |
437 } | 437 } |
438 | 438 |
439 void AsValueInto(base::debug::TracedValue* value) const { | 439 void AsValueInto(base::debug::TracedValue* value) const { |
440 return AsValueWithFrameInto(NULL, value); | 440 return AsValueWithFrameInto(NULL, value); |
441 } | 441 } |
442 void AsValueWithFrameInto(FrameData* frame, | 442 void AsValueWithFrameInto(FrameData* frame, |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 // - viewport_rect_for_tile_priority_ is the rect in view space used for | 689 // - viewport_rect_for_tile_priority_ is the rect in view space used for |
690 // tiling priority. | 690 // tiling priority. |
691 gfx::Transform external_transform_; | 691 gfx::Transform external_transform_; |
692 gfx::Rect external_viewport_; | 692 gfx::Rect external_viewport_; |
693 gfx::Rect external_clip_; | 693 gfx::Rect external_clip_; |
694 gfx::Rect viewport_rect_for_tile_priority_; | 694 gfx::Rect viewport_rect_for_tile_priority_; |
695 bool resourceless_software_draw_; | 695 bool resourceless_software_draw_; |
696 | 696 |
697 gfx::Rect viewport_damage_rect_; | 697 gfx::Rect viewport_damage_rect_; |
698 | 698 |
699 base::TimeTicks current_frame_timeticks_; | 699 BeginFrameArgs current_begin_frame_args_; |
700 | 700 |
701 // Expected time between two begin impl frame calls. | 701 // Expected time between two begin impl frame calls. |
702 base::TimeDelta begin_impl_frame_interval_; | 702 base::TimeDelta begin_impl_frame_interval_; |
703 | 703 |
704 scoped_ptr<AnimationRegistrar> animation_registrar_; | 704 scoped_ptr<AnimationRegistrar> animation_registrar_; |
705 | 705 |
706 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 706 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
707 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 707 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
708 | 708 |
709 bool need_to_update_visible_tiles_before_draw_; | 709 bool need_to_update_visible_tiles_before_draw_; |
(...skipping 11 matching lines...) Expand all Loading... |
721 | 721 |
722 std::vector<PictureLayerImpl*> picture_layers_; | 722 std::vector<PictureLayerImpl*> picture_layers_; |
723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
724 | 724 |
725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
726 }; | 726 }; |
727 | 727 |
728 } // namespace cc | 728 } // namespace cc |
729 | 729 |
730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |