| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 LayerTreeHostImplClient* client_; | 531 LayerTreeHostImplClient* client_; |
| 532 Proxy* proxy_; | 532 Proxy* proxy_; |
| 533 | 533 |
| 534 private: | 534 private: |
| 535 void CreateAndSetRenderer(); | 535 void CreateAndSetRenderer(); |
| 536 void CreateAndSetTileManager(); | 536 void CreateAndSetTileManager(); |
| 537 void DestroyTileManager(); | 537 void DestroyTileManager(); |
| 538 void ReleaseTreeResources(); | 538 void ReleaseTreeResources(); |
| 539 void EnforceZeroBudget(bool zero_budget); | 539 void EnforceZeroBudget(bool zero_budget); |
| 540 | 540 |
| 541 bool UsePendingTreeForSync() const; | |
| 542 bool IsSynchronousSingleThreaded() const; | 541 bool IsSynchronousSingleThreaded() const; |
| 543 | 542 |
| 544 // Scroll by preferring to move the outer viewport first, only moving the | 543 // Scroll by preferring to move the outer viewport first, only moving the |
| 545 // inner if the outer is at its scroll extents. | 544 // inner if the outer is at its scroll extents. |
| 546 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 545 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
| 547 // Scroll by preferring to move the inner viewport first, only moving the | 546 // Scroll by preferring to move the inner viewport first, only moving the |
| 548 // outer if the inner is at its scroll extents. | 547 // outer if the inner is at its scroll extents. |
| 549 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); | 548 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); |
| 550 void AnimatePageScale(base::TimeTicks monotonic_time); | 549 void AnimatePageScale(base::TimeTicks monotonic_time); |
| 551 void AnimateScrollbars(base::TimeTicks monotonic_time); | 550 void AnimateScrollbars(base::TimeTicks monotonic_time); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 725 |
| 727 bool requires_high_res_to_draw_; | 726 bool requires_high_res_to_draw_; |
| 728 bool required_for_draw_tile_is_top_of_raster_queue_; | 727 bool required_for_draw_tile_is_top_of_raster_queue_; |
| 729 | 728 |
| 730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 729 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 731 }; | 730 }; |
| 732 | 731 |
| 733 } // namespace cc | 732 } // namespace cc |
| 734 | 733 |
| 735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 734 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |