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