| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // by the desired amount without an animation. | 596 // by the desired amount without an animation. |
| 597 bool ScrollAnimationCreate(ScrollNode* scroll_node, | 597 bool ScrollAnimationCreate(ScrollNode* scroll_node, |
| 598 const gfx::Vector2dF& scroll_amount, | 598 const gfx::Vector2dF& scroll_amount, |
| 599 base::TimeDelta delayed_by); | 599 base::TimeDelta delayed_by); |
| 600 | 600 |
| 601 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); | 601 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); |
| 602 LayerTreeMutator* mutator() { return mutator_.get(); } | 602 LayerTreeMutator* mutator() { return mutator_.get(); } |
| 603 | 603 |
| 604 LayerImpl* ViewportMainScrollLayer(); | 604 LayerImpl* ViewportMainScrollLayer(); |
| 605 | 605 |
| 606 void QueueImageDecode(sk_sp<const SkImage> image, | 606 void QueueImageDecode(const PaintImage& image, |
| 607 const base::Callback<void(bool)>& embedder_callback); | 607 const base::Callback<void(bool)>& embedder_callback); |
| 608 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks(); | 608 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks(); |
| 609 | 609 |
| 610 void ClearImageCacheOnNavigation(); | 610 void ClearImageCacheOnNavigation(); |
| 611 | 611 |
| 612 protected: | 612 protected: |
| 613 LayerTreeHostImpl( | 613 LayerTreeHostImpl( |
| 614 const LayerTreeSettings& settings, | 614 const LayerTreeSettings& settings, |
| 615 LayerTreeHostImplClient* client, | 615 LayerTreeHostImplClient* client, |
| 616 TaskRunnerProvider* task_runner_provider, | 616 TaskRunnerProvider* task_runner_provider, |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 bool touchpad_and_wheel_scroll_latching_enabled_; | 882 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 883 | 883 |
| 884 ImplThreadPhase impl_thread_phase_; | 884 ImplThreadPhase impl_thread_phase_; |
| 885 | 885 |
| 886 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 886 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 887 }; | 887 }; |
| 888 | 888 |
| 889 } // namespace cc | 889 } // namespace cc |
| 890 | 890 |
| 891 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 891 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |