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

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

Issue 1782433002: CC Animation: Erase old animation system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasetests
Patch Set: Format. Created 4 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 | « cc/trees/layer_tree_impl.h ('k') | cc/trees/tree_synchronizer_unittest.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 #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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 } 1182 }
1183 1183
1184 bool LayerTreeImpl::create_low_res_tiling() const { 1184 bool LayerTreeImpl::create_low_res_tiling() const {
1185 return layer_tree_host_impl_->create_low_res_tiling(); 1185 return layer_tree_host_impl_->create_low_res_tiling();
1186 } 1186 }
1187 1187
1188 void LayerTreeImpl::SetNeedsRedraw() { 1188 void LayerTreeImpl::SetNeedsRedraw() {
1189 layer_tree_host_impl_->SetNeedsRedraw(); 1189 layer_tree_host_impl_->SetNeedsRedraw();
1190 } 1190 }
1191 1191
1192 AnimationRegistrar* LayerTreeImpl::GetAnimationRegistrar() const {
1193 return layer_tree_host_impl_->animation_registrar();
1194 }
1195
1196 void LayerTreeImpl::GetAllPrioritizedTilesForTracing( 1192 void LayerTreeImpl::GetAllPrioritizedTilesForTracing(
1197 std::vector<PrioritizedTile>* prioritized_tiles) const { 1193 std::vector<PrioritizedTile>* prioritized_tiles) const {
1198 LayerIterator end = LayerIterator::End(&render_surface_layer_list_); 1194 LayerIterator end = LayerIterator::End(&render_surface_layer_list_);
1199 for (LayerIterator it = LayerIterator::Begin(&render_surface_layer_list_); 1195 for (LayerIterator it = LayerIterator::Begin(&render_surface_layer_list_);
1200 it != end; ++it) { 1196 it != end; ++it) {
1201 if (!it.represents_itself()) 1197 if (!it.represents_itself())
1202 continue; 1198 continue;
1203 LayerImpl* layer_impl = *it; 1199 LayerImpl* layer_impl = *it;
1204 layer_impl->GetAllPrioritizedTilesForTracing(prioritized_tiles); 1200 layer_impl->GetAllPrioritizedTilesForTracing(prioritized_tiles);
1205 } 1201 }
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 selection->end = selection->start; 1854 selection->end = selection->start;
1859 } else { 1855 } else {
1860 selection->end = ComputeViewportSelectionBound( 1856 selection->end = ComputeViewportSelectionBound(
1861 selection_.end, 1857 selection_.end,
1862 selection_.end.layer_id ? LayerById(selection_.end.layer_id) : NULL, 1858 selection_.end.layer_id ? LayerById(selection_.end.layer_id) : NULL,
1863 device_scale_factor(), property_trees_.transform_tree, 1859 device_scale_factor(), property_trees_.transform_tree,
1864 property_trees_.clip_tree); 1860 property_trees_.clip_tree);
1865 } 1861 }
1866 } 1862 }
1867 1863
1868 void LayerTreeImpl::InputScrollAnimationFinished() {
loyso (OOO) 2016/03/09 06:08:57 This one is non obvious: Erased in favor for Layer
1869 // TODO(majidvp): We should pass in the original starting scroll position here
1870 ScrollStateData scroll_state_data;
1871 ScrollState scroll_state(scroll_state_data);
1872 layer_tree_host_impl_->ScrollEnd(&scroll_state);
1873 }
1874
1875 bool LayerTreeImpl::SmoothnessTakesPriority() const { 1864 bool LayerTreeImpl::SmoothnessTakesPriority() const {
1876 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY; 1865 return layer_tree_host_impl_->GetTreePriority() == SMOOTHNESS_TAKES_PRIORITY;
1877 } 1866 }
1878 1867
1879 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient() 1868 VideoFrameControllerClient* LayerTreeImpl::GetVideoFrameControllerClient()
1880 const { 1869 const {
1881 return layer_tree_host_impl_; 1870 return layer_tree_host_impl_;
1882 } 1871 }
1883 1872
1884 void LayerTreeImpl::SetPendingPageScaleAnimation( 1873 void LayerTreeImpl::SetPendingPageScaleAnimation(
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2066 const gfx::BoxF& box, 2055 const gfx::BoxF& box,
2067 gfx::BoxF* bounds) const { 2056 gfx::BoxF* bounds) const {
2068 *bounds = gfx::BoxF(); 2057 *bounds = gfx::BoxF();
2069 return layer_tree_host_impl_->animation_host() 2058 return layer_tree_host_impl_->animation_host()
2070 ? layer_tree_host_impl_->animation_host() 2059 ? layer_tree_host_impl_->animation_host()
2071 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) 2060 ->TransformAnimationBoundsForBox(layer->id(), box, bounds)
2072 : true; 2061 : true;
2073 } 2062 }
2074 2063
2075 } // namespace cc 2064 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/tree_synchronizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698