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

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

Issue 2501063003: Handle compositor/worker context the same wrt. visibility (Closed)
Patch Set: cleanup Created 4 years, 1 month 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
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <bitset> 10 #include <bitset>
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 void NotifySwapPromiseMonitorsOfForwardingToMainThread(); 680 void NotifySwapPromiseMonitorsOfForwardingToMainThread();
681 681
682 void UpdateRootLayerStateForSynchronousInputHandler(); 682 void UpdateRootLayerStateForSynchronousInputHandler();
683 683
684 void ScrollAnimationAbort(LayerImpl* layer_impl); 684 void ScrollAnimationAbort(LayerImpl* layer_impl);
685 685
686 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, 686 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node,
687 const gfx::Vector2dF& scroll_delta, 687 const gfx::Vector2dF& scroll_delta,
688 base::TimeDelta delayed_by); 688 base::TimeDelta delayed_by);
689 689
690 void SetCompositorContextVisibility(bool is_visible); 690 void SetContextVisibility(bool is_visible);
691 void SetWorkerContextVisibility(bool is_visible);
692 691
693 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; 692 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
694 UIResourceMap ui_resource_map_; 693 UIResourceMap ui_resource_map_;
695 694
696 // Resources that were evicted by EvictAllUIResources. Resources are removed 695 // Resources that were evicted by EvictAllUIResources. Resources are removed
697 // from this when they are touched by a create or destroy from the UI resource 696 // from this when they are touched by a create or destroy from the UI resource
698 // request queue. 697 // request queue.
699 std::set<UIResourceId> evicted_ui_resources_; 698 std::set<UIResourceId> evicted_ui_resources_;
700 699
701 CompositorFrameSink* compositor_frame_sink_; 700 CompositorFrameSink* compositor_frame_sink_;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 826
828 std::unique_ptr<PendingTreeDurationHistogramTimer> 827 std::unique_ptr<PendingTreeDurationHistogramTimer>
829 pending_tree_duration_timer_; 828 pending_tree_duration_timer_;
830 829
831 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 830 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
832 }; 831 };
833 832
834 } // namespace cc 833 } // namespace cc
835 834
836 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 835 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698