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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 1646663002: Refactor Scroll Customization to share cc::ScrollStateData with blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linking. Created 4 years, 10 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 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 selection->end = ComputeViewportSelectionBound( 1853 selection->end = ComputeViewportSelectionBound(
1854 selection_.end, 1854 selection_.end,
1855 selection_.end.layer_id ? LayerById(selection_.end.layer_id) : NULL, 1855 selection_.end.layer_id ? LayerById(selection_.end.layer_id) : NULL,
1856 device_scale_factor(), property_trees_.transform_tree, 1856 device_scale_factor(), property_trees_.transform_tree,
1857 property_trees_.clip_tree, use_property_trees); 1857 property_trees_.clip_tree, use_property_trees);
1858 } 1858 }
1859 } 1859 }
1860 1860
1861 void LayerTreeImpl::InputScrollAnimationFinished() { 1861 void LayerTreeImpl::InputScrollAnimationFinished() {
1862 // TODO(majidvp): We should pass in the original starting scroll position here 1862 // TODO(majidvp): We should pass in the original starting scroll position here
1863 ScrollState scroll_state(0, 0, 0, 0, 0, 0, false, false, false); 1863 ScrollStateData scroll_state_data;
1864 ScrollState scroll_state(scroll_state_data);
1864 layer_tree_host_impl_->ScrollEnd(&scroll_state); 1865 layer_tree_host_impl_->ScrollEnd(&scroll_state);
1865 } 1866 }
1866 1867
1867 bool LayerTreeImpl::SmoothnessTakesPriority() const { 1868 bool LayerTreeImpl::SmoothnessTakesPriority() const {
1868 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; 1869 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY;
1869 } 1870 }
1870 1871
1871 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() 1872 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient()
1872 const { 1873 const {
1873 return layer_tree_host_impl_; 1874 return layer_tree_host_impl_;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 const gfx::BoxF& box, 2051 const gfx::BoxF& box,
2051 gfx::BoxF* bounds) const { 2052 gfx::BoxF* bounds) const {
2052 *bounds = gfx::BoxF(); 2053 *bounds = gfx::BoxF();
2053 return layer_tree_host_impl_->animation_host() 2054 return layer_tree_host_impl_->animation_host()
2054 ? layer_tree_host_impl_->animation_host() 2055 ? layer_tree_host_impl_->animation_host()
2055 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) 2056 ->TransformAnimationBoundsForBox(layer->id(), box, bounds)
2056 : true; 2057 : true;
2057 } 2058 }
2058 2059
2059 } // namespace cc 2060 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698