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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
598 | 598 |
599 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); | 599 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); |
600 LayerTreeMutator* mutator() { return mutator_.get(); } | 600 LayerTreeMutator* mutator() { return mutator_.get(); } |
601 | 601 |
602 LayerImpl* ViewportMainScrollLayer(); | 602 LayerImpl* ViewportMainScrollLayer(); |
603 | 603 |
604 void QueueImageDecode(sk_sp<const SkImage> image, | 604 void QueueImageDecode(sk_sp<const SkImage> image, |
605 const base::Callback<void(bool)>& embedder_callback); | 605 const base::Callback<void(bool)>& embedder_callback); |
606 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks(); | 606 std::vector<base::Closure> TakeCompletedImageDecodeCallbacks(); |
607 | 607 |
608 static const int maxScrollerSize = 200000; // 400px * 500px | |
609 static const int bucketNum = 50; | |
tdresser
2017/03/30 15:19:06
Prefix with "k"
https://google.github.io/stylegui
weiliangc
2017/03/30 19:19:36
These two are just constants. Is it possible to pu
| |
610 | |
608 protected: | 611 protected: |
609 LayerTreeHostImpl( | 612 LayerTreeHostImpl( |
610 const LayerTreeSettings& settings, | 613 const LayerTreeSettings& settings, |
611 LayerTreeHostImplClient* client, | 614 LayerTreeHostImplClient* client, |
612 TaskRunnerProvider* task_runner_provider, | 615 TaskRunnerProvider* task_runner_provider, |
613 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 616 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
614 TaskGraphRunner* task_graph_runner, | 617 TaskGraphRunner* task_graph_runner, |
615 std::unique_ptr<MutatorHost> mutator_host, | 618 std::unique_ptr<MutatorHost> mutator_host, |
616 int id, | 619 int id, |
617 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); | 620 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
852 // These callbacks are stored here to be transfered to the main thread when we | 855 // These callbacks are stored here to be transfered to the main thread when we |
853 // begin main frame. These callbacks must only be called on the main thread. | 856 // begin main frame. These callbacks must only be called on the main thread. |
854 std::vector<base::Closure> completed_image_decode_callbacks_; | 857 std::vector<base::Closure> completed_image_decode_callbacks_; |
855 | 858 |
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 859 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
857 }; | 860 }; |
858 | 861 |
859 } // namespace cc | 862 } // namespace cc |
860 | 863 |
861 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 864 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |