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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 Proxy* proxy_; | 539 Proxy* proxy_; |
540 | 540 |
541 private: | 541 private: |
542 void CreateAndSetRenderer(); | 542 void CreateAndSetRenderer(); |
543 void CreateAndSetTileManager(); | 543 void CreateAndSetTileManager(); |
544 void DestroyTileManager(); | 544 void DestroyTileManager(); |
545 void ReleaseTreeResources(); | 545 void ReleaseTreeResources(); |
546 void RecreateTreeResources(); | 546 void RecreateTreeResources(); |
547 void EnforceZeroBudget(bool zero_budget); | 547 void EnforceZeroBudget(bool zero_budget); |
548 | 548 |
549 bool UsePendingTreeForSync() const; | |
550 bool IsSynchronousSingleThreaded() const; | 549 bool IsSynchronousSingleThreaded() const; |
551 | 550 |
552 // Scroll by preferring to move the outer viewport first, only moving the | 551 // Scroll by preferring to move the outer viewport first, only moving the |
553 // inner if the outer is at its scroll extents. | 552 // inner if the outer is at its scroll extents. |
554 void ScrollViewportBy(gfx::Vector2dF scroll_delta); | 553 void ScrollViewportBy(gfx::Vector2dF scroll_delta); |
555 // Scroll by preferring to move the inner viewport first, only moving the | 554 // Scroll by preferring to move the inner viewport first, only moving the |
556 // outer if the inner is at its scroll extents. | 555 // outer if the inner is at its scroll extents. |
557 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); | 556 void ScrollViewportInnerFirst(gfx::Vector2dF scroll_delta); |
558 void AnimatePageScale(base::TimeTicks monotonic_time); | 557 void AnimatePageScale(base::TimeTicks monotonic_time); |
559 void AnimateScrollbars(base::TimeTicks monotonic_time); | 558 void AnimateScrollbars(base::TimeTicks monotonic_time); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 bool is_likely_to_require_a_draw_; | 733 bool is_likely_to_require_a_draw_; |
735 | 734 |
736 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
737 | 736 |
738 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
739 }; | 738 }; |
740 | 739 |
741 } // namespace cc | 740 } // namespace cc |
742 | 741 |
743 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |