| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 335 |
| 336 bool create_low_res_tiling() const { | 336 bool create_low_res_tiling() const { |
| 337 return settings_.create_low_res_tiling && !use_gpu_rasterization_; | 337 return settings_.create_low_res_tiling && !use_gpu_rasterization_; |
| 338 } | 338 } |
| 339 ResourcePool* resource_pool() { return resource_pool_.get(); } | 339 ResourcePool* resource_pool() { return resource_pool_.get(); } |
| 340 Renderer* renderer() { return renderer_.get(); } | 340 Renderer* renderer() { return renderer_.get(); } |
| 341 const RendererCapabilitiesImpl& GetRendererCapabilities() const; | 341 const RendererCapabilitiesImpl& GetRendererCapabilities() const; |
| 342 | 342 |
| 343 virtual bool SwapBuffers(const FrameData& frame); | 343 virtual bool SwapBuffers(const FrameData& frame); |
| 344 virtual void WillBeginImplFrame(const BeginFrameArgs& args); | 344 virtual void WillBeginImplFrame(const BeginFrameArgs& args); |
| 345 virtual void DidFinishImplFrame(); | |
| 346 void DidModifyTilePriorities(); | 345 void DidModifyTilePriorities(); |
| 347 | 346 |
| 348 LayerTreeImpl* active_tree() { return active_tree_.get(); } | 347 LayerTreeImpl* active_tree() { return active_tree_.get(); } |
| 349 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 348 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 350 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 349 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 351 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 350 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 352 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } | 351 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } |
| 353 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 352 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 354 // Returns the tree LTH synchronizes with. | 353 // Returns the tree LTH synchronizes with. |
| 355 LayerTreeImpl* sync_tree() { | 354 LayerTreeImpl* sync_tree() { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 438 |
| 440 gfx::Vector2dF accumulated_root_overscroll() const { | 439 gfx::Vector2dF accumulated_root_overscroll() const { |
| 441 return accumulated_root_overscroll_; | 440 return accumulated_root_overscroll_; |
| 442 } | 441 } |
| 443 | 442 |
| 444 bool pinch_gesture_active() const { return pinch_gesture_active_; } | 443 bool pinch_gesture_active() const { return pinch_gesture_active_; } |
| 445 | 444 |
| 446 void SetTreePriority(TreePriority priority); | 445 void SetTreePriority(TreePriority priority); |
| 447 TreePriority GetTreePriority() const; | 446 TreePriority GetTreePriority() const; |
| 448 | 447 |
| 448 void UpdateCurrentBeginFrameArgs(const BeginFrameArgs& args); |
| 449 void ResetCurrentBeginFrameArgsForNextFrame(); |
| 449 virtual BeginFrameArgs CurrentBeginFrameArgs() const; | 450 virtual BeginFrameArgs CurrentBeginFrameArgs() const; |
| 450 | 451 |
| 451 // Expected time between two begin impl frame calls. | 452 // Expected time between two begin impl frame calls. |
| 452 base::TimeDelta begin_impl_frame_interval() const { | 453 base::TimeDelta begin_impl_frame_interval() const { |
| 453 return begin_impl_frame_interval_; | 454 return begin_impl_frame_interval_; |
| 454 } | 455 } |
| 455 | 456 |
| 456 void AsValueWithFrameInto(FrameData* frame, | 457 void AsValueWithFrameInto(FrameData* frame, |
| 457 base::trace_event::TracedValue* value) const; | 458 base::trace_event::TracedValue* value) const; |
| 458 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValueWithFrame( | 459 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValueWithFrame( |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 762 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 762 | 763 |
| 763 scoped_ptr<Viewport> viewport_; | 764 scoped_ptr<Viewport> viewport_; |
| 764 | 765 |
| 765 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 766 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 766 }; | 767 }; |
| 767 | 768 |
| 768 } // namespace cc | 769 } // namespace cc |
| 769 | 770 |
| 770 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 771 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |