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