Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 std::unique_ptr<ResourcePool>* resource_pool); 583 std::unique_ptr<ResourcePool>* resource_pool);
584 584
585 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } 585 bool prepare_tiles_needed() const { return tile_priorities_dirty_; }
586 586
587 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node, 587 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node,
588 const gfx::Vector2dF& delta, 588 const gfx::Vector2dF& delta,
589 const gfx::Point& viewport_point, 589 const gfx::Point& viewport_point,
590 bool is_direct_manipulation, 590 bool is_direct_manipulation,
591 ScrollTree* scroll_tree); 591 ScrollTree* scroll_tree);
592 592
593 void set_output_is_secure(bool output_is_secure) {
594 output_is_secure_ = output_is_secure;
595 }
596
597 bool output_is_secure() const { return output_is_secure_; }
598
599 base::SingleThreadTaskRunner* GetTaskRunner() const { 593 base::SingleThreadTaskRunner* GetTaskRunner() const {
600 DCHECK(task_runner_provider_); 594 DCHECK(task_runner_provider_);
601 return task_runner_provider_->HasImplThread() 595 return task_runner_provider_->HasImplThread()
602 ? task_runner_provider_->ImplThreadTaskRunner() 596 ? task_runner_provider_->ImplThreadTaskRunner()
603 : task_runner_provider_->MainThreadTaskRunner(); 597 : task_runner_provider_->MainThreadTaskRunner();
604 } 598 }
605 599
606 InputHandler::ScrollStatus TryScroll(const gfx::PointF& screen_space_point, 600 InputHandler::ScrollStatus TryScroll(const gfx::PointF& screen_space_point,
607 InputHandler::ScrollInputType type, 601 InputHandler::ScrollInputType type,
608 const ScrollTree& scroll_tree, 602 const ScrollTree& scroll_tree,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 // glViewport/window projection matrix. 799 // glViewport/window projection matrix.
806 // - external_clip_ specifies a top-level clip rect 800 // - external_clip_ specifies a top-level clip rect
807 // - viewport_rect_for_tile_priority_ is the rect in view space used for 801 // - viewport_rect_for_tile_priority_ is the rect in view space used for
808 // tiling priority. 802 // tiling priority.
809 gfx::Transform external_transform_; 803 gfx::Transform external_transform_;
810 gfx::Rect external_viewport_; 804 gfx::Rect external_viewport_;
811 gfx::Rect external_clip_; 805 gfx::Rect external_clip_;
812 gfx::Rect viewport_rect_for_tile_priority_; 806 gfx::Rect viewport_rect_for_tile_priority_;
813 bool resourceless_software_draw_; 807 bool resourceless_software_draw_;
814 808
815 bool output_is_secure_;
816
817 gfx::Rect viewport_damage_rect_; 809 gfx::Rect viewport_damage_rect_;
818 810
819 std::unique_ptr<AnimationHost> animation_host_; 811 std::unique_ptr<AnimationHost> animation_host_;
820 std::set<VideoFrameController*> video_frame_controllers_; 812 std::set<VideoFrameController*> video_frame_controllers_;
821 813
822 // Map from scroll layer ID to scrollbar animation controller. 814 // Map from scroll layer ID to scrollbar animation controller.
823 // There is one animation controller per pair of overlay scrollbars. 815 // There is one animation controller per pair of overlay scrollbars.
824 std::unordered_map<int, std::unique_ptr<ScrollbarAnimationController>> 816 std::unordered_map<int, std::unique_ptr<ScrollbarAnimationController>>
825 scrollbar_animation_controllers_; 817 scrollbar_animation_controllers_;
826 818
(...skipping 18 matching lines...) Expand all
845 std::unique_ptr<Viewport> viewport_; 837 std::unique_ptr<Viewport> viewport_;
846 838
847 LayerTreeMutator* mutator_; 839 LayerTreeMutator* mutator_;
848 840
849 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
850 }; 842 };
851 843
852 } // namespace cc 844 } // namespace cc
853 845
854 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698