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

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

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: boolean flags used instead of fieldbit 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
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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 void UpdateRootLayerStateForSynchronousInputHandler(); 703 void UpdateRootLayerStateForSynchronousInputHandler();
704 704
705 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node, 705 bool ScrollAnimationUpdateTarget(ScrollNode* scroll_node,
706 const gfx::Vector2dF& scroll_delta, 706 const gfx::Vector2dF& scroll_delta,
707 base::TimeDelta delayed_by); 707 base::TimeDelta delayed_by);
708 708
709 void SetContextVisibility(bool is_visible); 709 void SetContextVisibility(bool is_visible);
710 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback, 710 void ImageDecodeFinished(const base::Callback<void(bool)>& embedder_callback,
711 bool decode_succeeded); 711 bool decode_succeeded);
712 712
713 void UpdateScrollSourceInfo(bool is_wheel_scroll);
714
713 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; 715 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>;
714 UIResourceMap ui_resource_map_; 716 UIResourceMap ui_resource_map_;
715 717
716 // Resources that were evicted by EvictAllUIResources. Resources are removed 718 // Resources that were evicted by EvictAllUIResources. Resources are removed
717 // from this when they are touched by a create or destroy from the UI resource 719 // from this when they are touched by a create or destroy from the UI resource
718 // request queue. 720 // request queue.
719 std::set<UIResourceId> evicted_ui_resources_; 721 std::set<UIResourceId> evicted_ui_resources_;
720 722
721 CompositorFrameSink* compositor_frame_sink_; 723 CompositorFrameSink* compositor_frame_sink_;
722 724
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 849
848 std::unique_ptr<LayerTreeMutator> mutator_; 850 std::unique_ptr<LayerTreeMutator> mutator_;
849 851
850 std::unique_ptr<PendingTreeDurationHistogramTimer> 852 std::unique_ptr<PendingTreeDurationHistogramTimer>
851 pending_tree_duration_timer_; 853 pending_tree_duration_timer_;
852 854
853 // These callbacks are stored here to be transfered to the main thread when we 855 // These callbacks are stored here to be transfered to the main thread when we
854 // begin main frame. These callbacks must only be called on the main thread. 856 // begin main frame. These callbacks must only be called on the main thread.
855 std::vector<base::Closure> completed_image_decode_callbacks_; 857 std::vector<base::Closure> completed_image_decode_callbacks_;
856 858
859 // These are used to transfer usage of touch and wheel scrolls to the main
860 // thread.
861 bool has_scrolled_by_wheel_;
danakj 2017/03/16 15:19:21 where do these get init to false?
sahel 2017/03/17 21:02:34 Done.
862 bool has_scrolled_by_touch_;
863
857 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 864 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
858 }; 865 };
859 866
860 } // namespace cc 867 } // namespace cc
861 868
862 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 869 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698