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

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

Issue 2759523002: Make sure all the touch events during an active fling are uncancelable (Closed)
Patch Set: fling layer Created 3 years, 9 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 void UpdateRootLayerStateForSynchronousInputHandler(); 700 void UpdateRootLayerStateForSynchronousInputHandler();
701 701
702 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, 702 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node,
703 const gfx::Vector2dF& scroll_delta, 703 const gfx::Vector2dF& scroll_delta,
704 base::TimeDelta delayed_by); 704 base::TimeDelta delayed_by);
705 705
706 void SetContextVisibility(bool is_visible); 706 void SetContextVisibility(bool is_visible);
707 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback, 707 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback,
708 bool decode_succeeded); 708 bool decode_succeeded);
709 709
710 bool IsScrolledBy(LayerImpl* child, ScrollNode* ancestor);
711
710 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; 712 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
711 UIResourceMap ui_resource_map_; 713 UIResourceMap ui_resource_map_;
712 714
713 // Resources that were evicted by EvictAllUIResources. Resources are removed 715 // Resources that were evicted by EvictAllUIResources. Resources are removed
714 // from this when they are touched by a create or destroy from the UI resource 716 // from this when they are touched by a create or destroy from the UI resource
715 // request queue. 717 // request queue.
716 std::set<UIResourceId> evicted_ui_resources_; 718 std::set<UIResourceId> evicted_ui_resources_;
717 719
718 CompositorFrameSink* compositor_frame_sink_; 720 CompositorFrameSink* compositor_frame_sink_;
719 721
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 // These callbacks are stored here to be transfered to the main thread when we 854 // These callbacks are stored here to be transfered to the main thread when we
853 // begin main frame. These callbacks must only be called on the main thread. 855 // begin main frame. These callbacks must only be called on the main thread.
854 std::vector<base::Closure> completed_image_decode_callbacks_; 856 std::vector<base::Closure> completed_image_decode_callbacks_;
855 857
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
857 }; 859 };
858 860
859 } // namespace cc 861 } // namespace cc
860 862
861 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698