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

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

Issue 2256733003: Touchpad scroll latching enabled for Mac behind flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments edited. 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') | 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 ScrollNode* scroll_node) const; 602 ScrollNode* scroll_node) const;
603 603
604 // Returns true if a scroll offset animation is created and false if we scroll 604 // Returns true if a scroll offset animation is created and false if we scroll
605 // by the desired amount without an animation. 605 // by the desired amount without an animation.
606 bool ScrollAnimationCreate(ScrollNode* scroll_node, 606 bool ScrollAnimationCreate(ScrollNode* scroll_node,
607 const gfx::Vector2dF& scroll_amount); 607 const gfx::Vector2dF& scroll_amount);
608 608
609 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); 609 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
610 LayerTreeMutator* mutator() { return mutator_.get(); } 610 LayerTreeMutator* mutator() { return mutator_.get(); }
611 611
612 void ClearCurrentlyScrollingLayer();
ericrk 2016/08/25 16:56:50 If this is only made public for testing, can you l
sahel 2016/08/25 19:32:57 Done.
613
612 protected: 614 protected:
613 LayerTreeHostImpl( 615 LayerTreeHostImpl(
614 const LayerTreeSettings& settings, 616 const LayerTreeSettings& settings,
615 LayerTreeHostImplClient* client, 617 LayerTreeHostImplClient* client,
616 TaskRunnerProvider* task_runner_provider, 618 TaskRunnerProvider* task_runner_provider,
617 RenderingStatsInstrumentation* rendering_stats_instrumentation, 619 RenderingStatsInstrumentation* rendering_stats_instrumentation,
618 SharedBitmapManager* shared_bitmap_manager, 620 SharedBitmapManager* shared_bitmap_manager,
619 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 621 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
620 TaskGraphRunner* task_graph_runner, 622 TaskGraphRunner* task_graph_runner,
621 std::unique_ptr<AnimationHost> animation_host, 623 std::unique_ptr<AnimationHost> animation_host,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 void TrackDamageForAllSurfaces( 679 void TrackDamageForAllSurfaces(
678 const LayerImplList& render_surface_layer_list); 680 const LayerImplList& render_surface_layer_list);
679 681
680 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); 682 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy);
681 683
682 // This function should only be called from PrepareToDraw, as DidDrawAllLayers 684 // This function should only be called from PrepareToDraw, as DidDrawAllLayers
683 // must be called if this helper function is called. Returns DRAW_SUCCESS if 685 // must be called if this helper function is called. Returns DRAW_SUCCESS if
684 // the frame should be drawn. 686 // the frame should be drawn.
685 DrawResult CalculateRenderPasses(FrameData* frame); 687 DrawResult CalculateRenderPasses(FrameData* frame);
686 688
687 void ClearCurrentlyScrollingLayer();
688
689 void HandleMouseOverScrollbar(LayerImpl* layer_impl); 689 void HandleMouseOverScrollbar(LayerImpl* layer_impl);
690 690
691 LayerImpl* FindScrollLayerForDeviceViewportPoint( 691 LayerImpl* FindScrollLayerForDeviceViewportPoint(
692 const gfx::PointF& device_viewport_point, 692 const gfx::PointF& device_viewport_point,
693 InputHandler::ScrollInputType type, 693 InputHandler::ScrollInputType type,
694 LayerImpl* layer_hit_by_point, 694 LayerImpl* layer_hit_by_point,
695 bool* scroll_on_main_thread, 695 bool* scroll_on_main_thread,
696 uint32_t* main_thread_scrolling_reason) const; 696 uint32_t* main_thread_scrolling_reason) const;
697 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point, 697 float DeviceSpaceDistanceToLayer(const gfx::PointF& device_viewport_point,
698 LayerImpl* layer_impl); 698 LayerImpl* layer_impl);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 840
841 std::unique_ptr<PendingTreeDurationHistogramTimer> 841 std::unique_ptr<PendingTreeDurationHistogramTimer>
842 pending_tree_duration_timer_; 842 pending_tree_duration_timer_;
843 843
844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
845 }; 845 };
846 846
847 } // namespace cc 847 } // namespace cc
848 848
849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 849 #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