Chromium Code Reviews| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); | 418 static void RemoveRenderPasses(RenderPassCuller culler, FrameData* frame); |
| 419 | 419 |
| 420 gfx::Vector2dF accumulated_root_overscroll() const { | 420 gfx::Vector2dF accumulated_root_overscroll() const { |
| 421 return accumulated_root_overscroll_; | 421 return accumulated_root_overscroll_; |
| 422 } | 422 } |
| 423 | 423 |
| 424 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 424 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| 425 | 425 |
| 426 void SetTreePriority(TreePriority priority); | 426 void SetTreePriority(TreePriority priority); |
| 427 | 427 |
| 428 void UpdateCurrentFrameTime(); | 428 void UpdateCurrentFrameTime(const BeginFrameArgs& args); |
| 429 void ResetCurrentFrameTimeForNextFrame(); | 429 void ResetCurrentFrameTimeForNextFrame(); |
| 430 virtual base::TimeTicks CurrentFrameTimeTicks(); | 430 virtual BeginFrameArgs CurrentBeginFrameArgs() const; |
|
mithro-old
2014/08/11 07:33:33
Should these names be updated to "UpdateCurrentFra
Sami
2014/08/11 17:51:26
I was a little on the fence since they do actually
| |
| 431 | 431 |
| 432 // Expected time between two begin impl frame calls. | 432 // Expected time between two begin impl frame calls. |
| 433 base::TimeDelta begin_impl_frame_interval() const { | 433 base::TimeDelta begin_impl_frame_interval() const { |
| 434 return begin_impl_frame_interval_; | 434 return begin_impl_frame_interval_; |
| 435 } | 435 } |
| 436 | 436 |
| 437 void AsValueInto(base::debug::TracedValue* value) const { | 437 void AsValueInto(base::debug::TracedValue* value) const { |
| 438 return AsValueWithFrameInto(NULL, value); | 438 return AsValueWithFrameInto(NULL, value); |
| 439 } | 439 } |
| 440 void AsValueWithFrameInto(FrameData* frame, | 440 void AsValueWithFrameInto(FrameData* frame, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 685 // - viewport_rect_for_tile_priority_ is the rect in view space used for | 685 // - viewport_rect_for_tile_priority_ is the rect in view space used for |
| 686 // tiling priority. | 686 // tiling priority. |
| 687 gfx::Transform external_transform_; | 687 gfx::Transform external_transform_; |
| 688 gfx::Rect external_viewport_; | 688 gfx::Rect external_viewport_; |
| 689 gfx::Rect external_clip_; | 689 gfx::Rect external_clip_; |
| 690 gfx::Rect viewport_rect_for_tile_priority_; | 690 gfx::Rect viewport_rect_for_tile_priority_; |
| 691 bool resourceless_software_draw_; | 691 bool resourceless_software_draw_; |
| 692 | 692 |
| 693 gfx::Rect viewport_damage_rect_; | 693 gfx::Rect viewport_damage_rect_; |
| 694 | 694 |
| 695 base::TimeTicks current_frame_timeticks_; | 695 BeginFrameArgs current_begin_frame_args_; |
| 696 | 696 |
| 697 // Expected time between two begin impl frame calls. | 697 // Expected time between two begin impl frame calls. |
| 698 base::TimeDelta begin_impl_frame_interval_; | 698 base::TimeDelta begin_impl_frame_interval_; |
| 699 | 699 |
| 700 scoped_ptr<AnimationRegistrar> animation_registrar_; | 700 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 701 | 701 |
| 702 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 702 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 703 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 703 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 704 | 704 |
| 705 bool need_to_update_visible_tiles_before_draw_; | 705 bool need_to_update_visible_tiles_before_draw_; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 719 | 719 |
| 720 std::vector<PictureLayerImpl*> picture_layers_; | 720 std::vector<PictureLayerImpl*> picture_layers_; |
| 721 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 721 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 722 | 722 |
| 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 724 }; | 724 }; |
| 725 | 725 |
| 726 } // namespace cc | 726 } // namespace cc |
| 727 | 727 |
| 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |