| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; | 137 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; |
| 138 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; | 138 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; |
| 139 virtual void PinchGestureBegin() OVERRIDE; | 139 virtual void PinchGestureBegin() OVERRIDE; |
| 140 virtual void PinchGestureUpdate(float magnify_delta, | 140 virtual void PinchGestureUpdate(float magnify_delta, |
| 141 const gfx::Point& anchor) OVERRIDE; | 141 const gfx::Point& anchor) OVERRIDE; |
| 142 virtual void PinchGestureEnd() OVERRIDE; | 142 virtual void PinchGestureEnd() OVERRIDE; |
| 143 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 143 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 144 bool anchor_point, | 144 bool anchor_point, |
| 145 float page_scale, | 145 float page_scale, |
| 146 base::TimeDelta duration) OVERRIDE; | 146 base::TimeDelta duration) OVERRIDE; |
| 147 virtual void SetNeedsAnimate() OVERRIDE; | 147 virtual void SetNeedsAnimateFling() OVERRIDE; |
| 148 virtual bool IsCurrentlyScrollingLayerAt( | 148 virtual bool IsCurrentlyScrollingLayerAt( |
| 149 const gfx::Point& viewport_point, | 149 const gfx::Point& viewport_point, |
| 150 InputHandler::ScrollInputType type) OVERRIDE; | 150 InputHandler::ScrollInputType type) OVERRIDE; |
| 151 virtual bool HaveTouchEventHandlersAt( | 151 virtual bool HaveTouchEventHandlersAt( |
| 152 const gfx::Point& viewport_port) OVERRIDE; | 152 const gfx::Point& viewport_port) OVERRIDE; |
| 153 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 153 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 154 ui::LatencyInfo* latency) OVERRIDE; | 154 ui::LatencyInfo* latency) OVERRIDE; |
| 155 | 155 |
| 156 // TopControlsManagerClient implementation. | 156 // TopControlsManagerClient implementation. |
| 157 virtual void DidChangeTopControlsPosition() OVERRIDE; | 157 virtual void DidChangeTopControlsPosition() OVERRIDE; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 bool scroll_affects_scroll_handler() const { | 304 bool scroll_affects_scroll_handler() const { |
| 305 return scroll_affects_scroll_handler_; | 305 return scroll_affects_scroll_handler_; |
| 306 } | 306 } |
| 307 | 307 |
| 308 bool IsCurrentlyScrolling() const; | 308 bool IsCurrentlyScrolling() const; |
| 309 | 309 |
| 310 virtual void SetVisible(bool visible); | 310 virtual void SetVisible(bool visible); |
| 311 bool visible() const { return visible_; } | 311 bool visible() const { return visible_; } |
| 312 | 312 |
| 313 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 313 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
| 314 void SetNeedsAnimate(); |
| 314 void SetNeedsRedraw(); | 315 void SetNeedsRedraw(); |
| 315 | 316 |
| 316 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 317 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
| 317 | 318 |
| 318 size_t memory_allocation_limit_bytes() const; | 319 size_t memory_allocation_limit_bytes() const; |
| 319 int memory_allocation_priority_cutoff() const; | 320 int memory_allocation_priority_cutoff() const; |
| 320 | 321 |
| 321 void SetViewportSize(const gfx::Size& device_viewport_size); | 322 void SetViewportSize(const gfx::Size& device_viewport_size); |
| 322 gfx::Size device_viewport_size() const { return device_viewport_size_; } | 323 gfx::Size device_viewport_size() const { return device_viewport_size_; } |
| 323 | 324 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 bool skip_gl_renderer); | 488 bool skip_gl_renderer); |
| 488 void CreateAndSetTileManager(ResourceProvider* resource_provider, | 489 void CreateAndSetTileManager(ResourceProvider* resource_provider, |
| 489 ContextProvider* context_provider, | 490 ContextProvider* context_provider, |
| 490 bool use_zero_copy, | 491 bool use_zero_copy, |
| 491 bool use_one_copy, | 492 bool use_one_copy, |
| 492 bool allow_rasterize_on_demand); | 493 bool allow_rasterize_on_demand); |
| 493 void ReleaseTreeResources(); | 494 void ReleaseTreeResources(); |
| 494 void EnforceZeroBudget(bool zero_budget); | 495 void EnforceZeroBudget(bool zero_budget); |
| 495 | 496 |
| 496 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 497 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
| 498 void AnimateFling(base::TimeTicks monotonic_time); |
| 497 void AnimatePageScale(base::TimeTicks monotonic_time); | 499 void AnimatePageScale(base::TimeTicks monotonic_time); |
| 498 void AnimateScrollbars(base::TimeTicks monotonic_time); | 500 void AnimateScrollbars(base::TimeTicks monotonic_time); |
| 499 void AnimateTopControls(base::TimeTicks monotonic_time); | 501 void AnimateTopControls(base::TimeTicks monotonic_time); |
| 500 | 502 |
| 501 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 503 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
| 502 LayerImpl* layer_impl, | 504 LayerImpl* layer_impl, |
| 503 float scale_from_viewport_to_screen_space, | 505 float scale_from_viewport_to_screen_space, |
| 504 const gfx::PointF& viewport_point, | 506 const gfx::PointF& viewport_point, |
| 505 const gfx::Vector2dF& viewport_delta); | 507 const gfx::Vector2dF& viewport_delta); |
| 506 | 508 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 681 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 680 | 682 |
| 681 size_t transfer_buffer_memory_limit_; | 683 size_t transfer_buffer_memory_limit_; |
| 682 | 684 |
| 683 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 685 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 684 }; | 686 }; |
| 685 | 687 |
| 686 } // namespace cc | 688 } // namespace cc |
| 687 | 689 |
| 688 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 690 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |