| 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 UpdateCurrentFrameTime(); |
| 391 void ResetCurrentFrameTimeForNextFrame(); | 392 void ResetCurrentFrameTimeForNextFrame(); |
| 392 virtual base::TimeTicks CurrentFrameTimeTicks(); | 393 virtual base::TimeTicks CurrentFrameTimeTicks(); |
| 393 | 394 |
| 394 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; | |
| 395 | |
| 396 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } | 395 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } |
| 397 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; | 396 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; |
| 398 scoped_ptr<base::Value> ActivationStateAsValue() const; | 397 scoped_ptr<base::Value> ActivationStateAsValue() const; |
| 399 | 398 |
| 400 bool page_scale_animation_active() const { return !!page_scale_animation_; } | 399 bool page_scale_animation_active() const { return !!page_scale_animation_; } |
| 401 | 400 |
| 402 virtual void CreateUIResource(UIResourceId uid, | 401 virtual void CreateUIResource(UIResourceId uid, |
| 403 const UIResourceBitmap& bitmap); | 402 const UIResourceBitmap& bitmap); |
| 404 // Deletes a UI resource. May safely be called more than once. | 403 // Deletes a UI resource. May safely be called more than once. |
| 405 virtual void DeleteUIResource(UIResourceId uid); | 404 virtual void DeleteUIResource(UIResourceId uid); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 void SendReleaseResourcesRecursive(LayerImpl* current); | 497 void SendReleaseResourcesRecursive(LayerImpl* current); |
| 499 bool EnsureRenderSurfaceLayerList(); | 498 bool EnsureRenderSurfaceLayerList(); |
| 500 void ClearCurrentlyScrollingLayer(); | 499 void ClearCurrentlyScrollingLayer(); |
| 501 | 500 |
| 502 bool HandleMouseOverScrollbar(LayerImpl* layer_impl, | 501 bool HandleMouseOverScrollbar(LayerImpl* layer_impl, |
| 503 const gfx::PointF& device_viewport_point); | 502 const gfx::PointF& device_viewport_point); |
| 504 | 503 |
| 505 void AnimateScrollbarsRecursive(LayerImpl* layer, | 504 void AnimateScrollbarsRecursive(LayerImpl* layer, |
| 506 base::TimeTicks time); | 505 base::TimeTicks time); |
| 507 | 506 |
| 508 void UpdateCurrentFrameTime(base::TimeTicks* ticks) const; | |
| 509 | |
| 510 LayerImpl* FindScrollLayerForDeviceViewportPoint( | 507 LayerImpl* FindScrollLayerForDeviceViewportPoint( |
| 511 const gfx::PointF& device_viewport_point, | 508 const gfx::PointF& device_viewport_point, |
| 512 InputHandler::ScrollInputType type, | 509 InputHandler::ScrollInputType type, |
| 513 LayerImpl* layer_hit_by_point, | 510 LayerImpl* layer_hit_by_point, |
| 514 bool* scroll_on_main_thread) const; | 511 bool* scroll_on_main_thread) const; |
| 515 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, | 512 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, |
| 516 LayerImpl* layer_impl); | 513 LayerImpl* layer_impl); |
| 517 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time); | 514 void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time); |
| 518 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, | 515 void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy, |
| 519 bool zero_budget); | 516 bool zero_budget); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 int id_; | 653 int id_; |
| 657 | 654 |
| 658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 655 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 659 | 656 |
| 660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 657 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 661 }; | 658 }; |
| 662 | 659 |
| 663 } // namespace cc | 660 } // namespace cc |
| 664 | 661 |
| 665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 662 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |