| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return accumulated_root_overscroll_; | 381 return accumulated_root_overscroll_; |
| 382 } | 382 } |
| 383 gfx::Vector2dF current_fling_velocity() const { | 383 gfx::Vector2dF current_fling_velocity() const { |
| 384 return current_fling_velocity_; | 384 return current_fling_velocity_; |
| 385 } | 385 } |
| 386 | 386 |
| 387 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 387 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| 388 | 388 |
| 389 void SetTreePriority(TreePriority priority); | 389 void SetTreePriority(TreePriority priority); |
| 390 | 390 |
| 391 void ResetCurrentFrameTimeForNextFrame(); | 391 virtual base::TimeTicks CurrentFrameTimeTicks() const; |
| 392 virtual base::TimeTicks CurrentFrameTimeTicks(); | 392 virtual void OverrideCurrentFrameTime(base::TimeTicks frame_time); |
| 393 | |
| 394 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; | |
| 395 | 393 |
| 396 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } | 394 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| 397 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; | 395 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; |
| 398 scoped_ptr<base::Value> ActivationStateAsValue() const; | 396 scoped_ptr<base::Value> ActivationStateAsValue() const; |
| 399 | 397 |
| 400 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 398 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 401 | 399 |
| 402 virtual void CreateUIResource(UIResourceId uid, | 400 virtual void CreateUIResource(UIResourceId uid, |
| 403 const UIResourceBitmap& bitmap); | 401 const UIResourceBitmap& bitmap); |
| 404 // Deletes a UI resource. May safely be called more than once. | 402 // Deletes a UI resource. May safely be called more than once. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 // (When these are specified, device_viewport_size_ remains used only for | 628 // (When these are specified, device_viewport_size_ remains used only for |
| 631 // scrollable size.) | 629 // scrollable size.) |
| 632 gfx::Transform external_transform_; | 630 gfx::Transform external_transform_; |
| 633 gfx::Rect external_viewport_; | 631 gfx::Rect external_viewport_; |
| 634 gfx::Rect external_clip_; | 632 gfx::Rect external_clip_; |
| 635 bool device_viewport_valid_for_tile_management_; | 633 bool device_viewport_valid_for_tile_management_; |
| 636 bool external_stencil_test_enabled_; | 634 bool external_stencil_test_enabled_; |
| 637 | 635 |
| 638 gfx::Rect viewport_damage_rect_; | 636 gfx::Rect viewport_damage_rect_; |
| 639 | 637 |
| 640 base::TimeTicks current_frame_timeticks_; | 638 BeginFrameArgs current_frame_args_; |
| 639 BeginFrameArgs last_frame_args_; |
| 641 | 640 |
| 642 scoped_ptr<AnimationRegistrar> animation_registrar_; | 641 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 643 | 642 |
| 644 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 643 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 645 MicroBenchmarkControllerImpl micro_benchmark_controller_; | 644 MicroBenchmarkControllerImpl micro_benchmark_controller_; |
| 646 | 645 |
| 647 bool need_to_update_visible_tiles_before_draw_; | 646 bool need_to_update_visible_tiles_before_draw_; |
| 648 #ifndef NDEBUG | 647 #ifndef NDEBUG |
| 649 bool did_lose_called_; | 648 bool did_lose_called_; |
| 650 #endif | 649 #endif |
| 651 | 650 |
| 652 // Optional callback to notify of new tree activations. | 651 // Optional callback to notify of new tree activations. |
| 653 base::Closure tree_activation_callback_; | 652 base::Closure tree_activation_callback_; |
| 654 | 653 |
| 655 SharedBitmapManager* shared_bitmap_manager_; | 654 SharedBitmapManager* shared_bitmap_manager_; |
| 656 int id_; | 655 int id_; |
| 657 | 656 |
| 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 657 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 659 | 658 |
| 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 659 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 661 }; | 660 }; |
| 662 | 661 |
| 663 } // namespace cc | 662 } // namespace cc |
| 664 | 663 |
| 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 664 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |