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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; | 499 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
500 | 500 |
501 private: | 501 private: |
502 friend class LayerTreeHostSerializationTest; | 502 friend class LayerTreeHostSerializationTest; |
503 | 503 |
504 // This is the number of consecutive frames in which we want the content to be | 504 // This is the number of consecutive frames in which we want the content to be |
505 // suitable for GPU rasterization before re-enabling it. | 505 // suitable for GPU rasterization before re-enabling it. |
506 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; | 506 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; |
507 | 507 |
508 void ApplyViewportDeltas(ScrollAndScaleSet* info); | 508 void ApplyViewportDeltas(ScrollAndScaleSet* info); |
| 509 void RecordWheelAndTouchScrollingCount(ScrollAndScaleSet* info); |
509 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); | 510 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); |
510 void InitializeProxy(std::unique_ptr<Proxy> proxy); | 511 void InitializeProxy(std::unique_ptr<Proxy> proxy); |
511 | 512 |
512 bool DoUpdateLayers(Layer* root_layer); | 513 bool DoUpdateLayers(Layer* root_layer); |
513 | 514 |
514 void UpdateDeferCommitsInternal(); | 515 void UpdateDeferCommitsInternal(); |
515 | 516 |
516 const CompositorMode compositor_mode_; | 517 const CompositorMode compositor_mode_; |
517 | 518 |
518 std::unique_ptr<UIResourceManager> ui_resource_manager_; | 519 std::unique_ptr<UIResourceManager> ui_resource_manager_; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 | 622 |
622 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> | 623 std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> |
623 queued_image_decodes_; | 624 queued_image_decodes_; |
624 | 625 |
625 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 626 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
626 }; | 627 }; |
627 | 628 |
628 } // namespace cc | 629 } // namespace cc |
629 | 630 |
630 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 631 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |