| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 base::Time wall_clock_time) = 0; | 67 base::Time wall_clock_time) = 0; |
| 68 // Returns true if resources were deleted by this call. | 68 // Returns true if resources were deleted by this call. |
| 69 virtual bool ReduceContentsTextureMemoryOnImplThread( | 69 virtual bool ReduceContentsTextureMemoryOnImplThread( |
| 70 size_t limit_bytes, | 70 size_t limit_bytes, |
| 71 int priority_cutoff) = 0; | 71 int priority_cutoff) = 0; |
| 72 virtual void ReduceWastedContentsTextureMemoryOnImplThread() = 0; | 72 virtual void ReduceWastedContentsTextureMemoryOnImplThread() = 0; |
| 73 virtual void SendManagedMemoryStats() = 0; | 73 virtual void SendManagedMemoryStats() = 0; |
| 74 virtual bool IsInsideDraw() = 0; | 74 virtual bool IsInsideDraw() = 0; |
| 75 virtual void RenewTreePriority() = 0; | 75 virtual void RenewTreePriority() = 0; |
| 76 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0; | 76 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0; |
| 77 virtual void DidReceiveLastInputEventForBeginFrameOnImplThread( | |
| 78 base::TimeTicks frame_time) = 0; | |
| 79 virtual void DidActivatePendingTree() = 0; | 77 virtual void DidActivatePendingTree() = 0; |
| 80 | 78 |
| 81 protected: | 79 protected: |
| 82 virtual ~LayerTreeHostImplClient() {} | 80 virtual ~LayerTreeHostImplClient() {} |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering | 83 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering |
| 86 // state. | 84 // state. |
| 87 class CC_EXPORT LayerTreeHostImpl | 85 class CC_EXPORT LayerTreeHostImpl |
| 88 : public InputHandler, | 86 : public InputHandler, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 118 virtual void PinchGestureUpdate(float magnify_delta, | 116 virtual void PinchGestureUpdate(float magnify_delta, |
| 119 gfx::Point anchor) OVERRIDE; | 117 gfx::Point anchor) OVERRIDE; |
| 120 virtual void PinchGestureEnd() OVERRIDE; | 118 virtual void PinchGestureEnd() OVERRIDE; |
| 121 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset, | 119 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset, |
| 122 bool anchor_point, | 120 bool anchor_point, |
| 123 float page_scale, | 121 float page_scale, |
| 124 base::TimeTicks start_time, | 122 base::TimeTicks start_time, |
| 125 base::TimeDelta duration) OVERRIDE; | 123 base::TimeDelta duration) OVERRIDE; |
| 126 virtual void ScheduleAnimation() OVERRIDE; | 124 virtual void ScheduleAnimation() OVERRIDE; |
| 127 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; | 125 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; |
| 128 virtual void DidReceiveLastInputEventForBeginFrame( | |
| 129 base::TimeTicks frame_time) OVERRIDE; | |
| 130 | 126 |
| 131 // TopControlsManagerClient implementation. | 127 // TopControlsManagerClient implementation. |
| 132 virtual void DidChangeTopControlsPosition() OVERRIDE; | 128 virtual void DidChangeTopControlsPosition() OVERRIDE; |
| 133 virtual bool HaveRootScrollLayer() const OVERRIDE; | 129 virtual bool HaveRootScrollLayer() const OVERRIDE; |
| 134 | 130 |
| 135 void StartScrollbarAnimation(base::TimeTicks now); | 131 void StartScrollbarAnimation(base::TimeTicks now); |
| 136 | 132 |
| 137 struct CC_EXPORT FrameData : public RenderPassSink { | 133 struct CC_EXPORT FrameData : public RenderPassSink { |
| 138 FrameData(); | 134 FrameData(); |
| 139 virtual ~FrameData(); | 135 virtual ~FrameData(); |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 scoped_ptr<AnimationRegistrar> animation_registrar_; | 502 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 507 | 503 |
| 508 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 504 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 509 | 505 |
| 510 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 506 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 511 }; | 507 }; |
| 512 | 508 |
| 513 } // namespace cc | 509 } // namespace cc |
| 514 | 510 |
| 515 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 511 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |