| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 } | 540 } |
| 541 | 541 |
| 542 LayerTreeHostImplClient* client_; | 542 LayerTreeHostImplClient* client_; |
| 543 Proxy* proxy_; | 543 Proxy* proxy_; |
| 544 | 544 |
| 545 private: | 545 private: |
| 546 void CreateAndSetRenderer(); | 546 void CreateAndSetRenderer(); |
| 547 void CreateAndSetTileManager(); | 547 void CreateAndSetTileManager(); |
| 548 void DestroyTileManager(); | 548 void DestroyTileManager(); |
| 549 void ReleaseTreeResources(); | 549 void ReleaseTreeResources(); |
| 550 void RecreateTreeResources(); |
| 550 void EnforceZeroBudget(bool zero_budget); | 551 void EnforceZeroBudget(bool zero_budget); |
| 551 | 552 |
| 552 bool UsePendingTreeForSync() const; | 553 bool UsePendingTreeForSync() const; |
| 553 bool IsSynchronousSingleThreaded() const; | 554 bool IsSynchronousSingleThreaded() const; |
| 554 | 555 |
| 555 // Scroll by preferring to move the outer viewport first, only moving the | 556 // Scroll by preferring to move the outer viewport first, only moving the |
| 556 // inner if the outer is at its scroll extents. | 557 // inner if the outer is at its scroll extents. |
| 557 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 558 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
| 558 // Scroll by preferring to move the inner viewport first, only moving the | 559 // Scroll by preferring to move the inner viewport first, only moving the |
| 559 // outer if the inner is at its scroll extents. | 560 // outer if the inner is at its scroll extents. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 bool is_likely_to_require_a_draw_; | 740 bool is_likely_to_require_a_draw_; |
| 740 | 741 |
| 741 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 742 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 742 | 743 |
| 743 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 744 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 744 }; | 745 }; |
| 745 | 746 |
| 746 } // namespace cc | 747 } // namespace cc |
| 747 | 748 |
| 748 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 749 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |