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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 | 622 |
623 // Removes empty or orphan RenderPasses from the frame. | 623 // Removes empty or orphan RenderPasses from the frame. |
624 static void RemoveRenderPasses(FrameData* frame); | 624 static void RemoveRenderPasses(FrameData* frame); |
625 | 625 |
626 LayerTreeHostImplClient* client_; | 626 LayerTreeHostImplClient* client_; |
627 TaskRunnerProvider* task_runner_provider_; | 627 TaskRunnerProvider* task_runner_provider_; |
628 | 628 |
629 BeginFrameTracker current_begin_frame_tracker_; | 629 BeginFrameTracker current_begin_frame_tracker_; |
630 | 630 |
631 private: | 631 private: |
| 632 const gfx::Transform LayerScreenSpaceTransform(const LayerImpl* layer); |
632 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( | 633 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( |
633 LayerImpl* layer_impl, | 634 LayerImpl* layer_impl, |
634 const gfx::PointF& viewport_point, | 635 const gfx::PointF& viewport_point, |
635 const gfx::Vector2dF& viewport_delta); | 636 const gfx::Vector2dF& viewport_delta); |
636 | 637 |
637 void CreateAndSetRenderer(); | 638 void CreateAndSetRenderer(); |
638 void CleanUpTileManagerAndUIResources(); | 639 void CleanUpTileManagerAndUIResources(); |
639 void CreateTileManagerResources(); | 640 void CreateTileManagerResources(); |
640 void ReleaseTreeResources(); | 641 void ReleaseTreeResources(); |
641 void RecreateTreeResources(); | 642 void RecreateTreeResources(); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 828 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
828 | 829 |
829 scoped_ptr<Viewport> viewport_; | 830 scoped_ptr<Viewport> viewport_; |
830 | 831 |
831 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 832 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
832 }; | 833 }; |
833 | 834 |
834 } // namespace cc | 835 } // namespace cc |
835 | 836 |
836 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 837 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |