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

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

Issue 2360963003: Revert "Touchpad scroll latching enabled for Mac behind flag." (Closed)
Patch Set: Created 4 years, 3 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') | 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 ScrollNode* scroll_node) const; 600 ScrollNode* scroll_node) const;
601 601
602 // Returns true if a scroll offset animation is created and false if we scroll 602 // Returns true if a scroll offset animation is created and false if we scroll
603 // by the desired amount without an animation. 603 // by the desired amount without an animation.
604 bool ScrollAnimationCreate(ScrollNode* scroll_node, 604 bool ScrollAnimationCreate(ScrollNode* scroll_node,
605 const gfx::Vector2dF& scroll_amount); 605 const gfx::Vector2dF& scroll_amount);
606 606
607 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); 607 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
608 LayerTreeMutator* mutator() { return mutator_.get(); } 608 LayerTreeMutator* mutator() { return mutator_.get(); }
609 609
610 void ClearCurrentlyScrollingLayerForTesting() {
611 ClearCurrentlyScrollingLayer();
612 }
613
614 protected: 610 protected:
615 LayerTreeHostImpl( 611 LayerTreeHostImpl(
616 const LayerTreeSettings& settings, 612 const LayerTreeSettings& settings,
617 LayerTreeHostImplClient* client, 613 LayerTreeHostImplClient* client,
618 TaskRunnerProvider* task_runner_provider, 614 TaskRunnerProvider* task_runner_provider,
619 RenderingStatsInstrumentation* rendering_stats_instrumentation, 615 RenderingStatsInstrumentation* rendering_stats_instrumentation,
620 SharedBitmapManager* shared_bitmap_manager, 616 SharedBitmapManager* shared_bitmap_manager,
621 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 617 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
622 TaskGraphRunner* task_graph_runner, 618 TaskGraphRunner* task_graph_runner,
623 std::unique_ptr<AnimationHost> animation_host, 619 std::unique_ptr<AnimationHost> animation_host,
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 849
854 std::unique_ptr<PendingTreeDurationHistogramTimer> 850 std::unique_ptr<PendingTreeDurationHistogramTimer>
855 pending_tree_duration_timer_; 851 pending_tree_duration_timer_;
856 852
857 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
858 }; 854 };
859 855
860 } // namespace cc 856 } // namespace cc
861 857
862 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 858 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698