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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 442 |
443 void ElementIsAnimatingChanged(ElementId element_id, | 443 void ElementIsAnimatingChanged(ElementId element_id, |
444 ElementListType list_type, | 444 ElementListType list_type, |
445 const PropertyAnimationState& mask, | 445 const PropertyAnimationState& mask, |
446 const PropertyAnimationState& state) override; | 446 const PropertyAnimationState& state) override; |
447 | 447 |
448 void ScrollOffsetAnimationFinished() override {} | 448 void ScrollOffsetAnimationFinished() override {} |
449 gfx::ScrollOffset GetScrollOffsetForAnimation( | 449 gfx::ScrollOffset GetScrollOffsetForAnimation( |
450 ElementId element_id) const override; | 450 ElementId element_id) const override; |
451 | 451 |
| 452 void ResetTrees(); |
| 453 |
452 protected: | 454 protected: |
453 LayerTreeHost(InitParams* params, CompositorMode mode); | 455 LayerTreeHost(InitParams* params, CompositorMode mode); |
454 | 456 |
455 void InitializeThreaded( | 457 void InitializeThreaded( |
456 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 458 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
457 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 459 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
458 void InitializeSingleThreaded( | 460 void InitializeSingleThreaded( |
459 LayerTreeHostSingleThreadClient* single_thread_client, | 461 LayerTreeHostSingleThreadClient* single_thread_client, |
460 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 462 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
461 void InitializeForTesting( | 463 void InitializeForTesting( |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 MutatorHost* mutator_host_; | 600 MutatorHost* mutator_host_; |
599 | 601 |
600 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; | 602 scoped_refptr<base::SequencedTaskRunner> image_worker_task_runner_; |
601 | 603 |
602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 604 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
603 }; | 605 }; |
604 | 606 |
605 } // namespace cc | 607 } // namespace cc |
606 | 608 |
607 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 609 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |