| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 std::unique_ptr<ResourcePool>* resource_pool); | 584 std::unique_ptr<ResourcePool>* resource_pool); |
| 585 | 585 |
| 586 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } | 586 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } |
| 587 | 587 |
| 588 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node, | 588 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node, |
| 589 const gfx::Vector2dF& delta, | 589 const gfx::Vector2dF& delta, |
| 590 const gfx::Point& viewport_point, | 590 const gfx::Point& viewport_point, |
| 591 bool is_direct_manipulation, | 591 bool is_direct_manipulation, |
| 592 ScrollTree* scroll_tree); | 592 ScrollTree* scroll_tree); |
| 593 | 593 |
| 594 void set_output_is_secure(bool output_is_secure) { | |
| 595 output_is_secure_ = output_is_secure; | |
| 596 } | |
| 597 | |
| 598 bool output_is_secure() const { return output_is_secure_; } | |
| 599 | |
| 600 base::SingleThreadTaskRunner* GetTaskRunner() const { | 594 base::SingleThreadTaskRunner* GetTaskRunner() const { |
| 601 DCHECK(task_runner_provider_); | 595 DCHECK(task_runner_provider_); |
| 602 return task_runner_provider_->HasImplThread() | 596 return task_runner_provider_->HasImplThread() |
| 603 ? task_runner_provider_->ImplThreadTaskRunner() | 597 ? task_runner_provider_->ImplThreadTaskRunner() |
| 604 : task_runner_provider_->MainThreadTaskRunner(); | 598 : task_runner_provider_->MainThreadTaskRunner(); |
| 605 } | 599 } |
| 606 | 600 |
| 607 InputHandler::ScrollStatus TryScroll(const gfx::PointF& screen_space_point, | 601 InputHandler::ScrollStatus TryScroll(const gfx::PointF& screen_space_point, |
| 608 InputHandler::ScrollInputType type, | 602 InputHandler::ScrollInputType type, |
| 609 const ScrollTree& scroll_tree, | 603 const ScrollTree& scroll_tree, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 // glViewport/window projection matrix. | 813 // glViewport/window projection matrix. |
| 820 // - external_clip_ specifies a top-level clip rect | 814 // - external_clip_ specifies a top-level clip rect |
| 821 // - viewport_rect_for_tile_priority_ is the rect in view space used for | 815 // - viewport_rect_for_tile_priority_ is the rect in view space used for |
| 822 // tiling priority. | 816 // tiling priority. |
| 823 gfx::Transform external_transform_; | 817 gfx::Transform external_transform_; |
| 824 gfx::Rect external_viewport_; | 818 gfx::Rect external_viewport_; |
| 825 gfx::Rect external_clip_; | 819 gfx::Rect external_clip_; |
| 826 gfx::Rect viewport_rect_for_tile_priority_; | 820 gfx::Rect viewport_rect_for_tile_priority_; |
| 827 bool resourceless_software_draw_; | 821 bool resourceless_software_draw_; |
| 828 | 822 |
| 829 bool output_is_secure_; | |
| 830 | |
| 831 gfx::Rect viewport_damage_rect_; | 823 gfx::Rect viewport_damage_rect_; |
| 832 | 824 |
| 833 std::unique_ptr<AnimationHost> animation_host_; | 825 std::unique_ptr<AnimationHost> animation_host_; |
| 834 std::set<VideoFrameController*> video_frame_controllers_; | 826 std::set<VideoFrameController*> video_frame_controllers_; |
| 835 | 827 |
| 836 // Map from scroll layer ID to scrollbar animation controller. | 828 // Map from scroll layer ID to scrollbar animation controller. |
| 837 // There is one animation controller per pair of overlay scrollbars. | 829 // There is one animation controller per pair of overlay scrollbars. |
| 838 std::unordered_map<int, std::unique_ptr<ScrollbarAnimationController>> | 830 std::unordered_map<int, std::unique_ptr<ScrollbarAnimationController>> |
| 839 scrollbar_animation_controllers_; | 831 scrollbar_animation_controllers_; |
| 840 | 832 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 863 bool has_fixed_raster_scale_blurry_content_; | 855 bool has_fixed_raster_scale_blurry_content_; |
| 864 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount> | 856 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount> |
| 865 fixed_raster_scale_attempted_scale_change_history_; | 857 fixed_raster_scale_attempted_scale_change_history_; |
| 866 | 858 |
| 867 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 859 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 868 }; | 860 }; |
| 869 | 861 |
| 870 } // namespace cc | 862 } // namespace cc |
| 871 | 863 |
| 872 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 864 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |