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

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

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common_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_host.h" 5 #include "cc/trees/layer_tree_host.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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 bool LayerTreeHost::AnimationStartScale(const Layer* layer, 1381 bool LayerTreeHost::AnimationStartScale(const Layer* layer,
1382 float* start_scale) const { 1382 float* start_scale) const {
1383 return animation_host_ 1383 return animation_host_
1384 ? animation_host_->AnimationStartScale( 1384 ? animation_host_->AnimationStartScale(
1385 layer->id(), LayerTreeType::ACTIVE, start_scale) 1385 layer->id(), LayerTreeType::ACTIVE, start_scale)
1386 : false; 1386 : false;
1387 } 1387 }
1388 1388
1389 bool LayerTreeHost::HasAnyAnimationTargetingProperty( 1389 bool LayerTreeHost::HasAnyAnimationTargetingProperty(
1390 const Layer* layer, 1390 const Layer* layer,
1391 Animation::TargetProperty property) const { 1391 TargetProperty::Type property) const {
1392 return animation_host_ 1392 return animation_host_
1393 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(), 1393 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(),
1394 property) 1394 property)
1395 : false; 1395 : false;
1396 } 1396 }
1397 1397
1398 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const { 1398 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const {
1399 return animation_host_ 1399 return animation_host_
1400 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id()) 1400 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id())
1401 : true; 1401 : true;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 LayerTreeHostCommon::CallFunctionForSubtree( 1592 LayerTreeHostCommon::CallFunctionForSubtree(
1593 root_layer(), [seq_num](Layer* layer) { 1593 root_layer(), [seq_num](Layer* layer) {
1594 layer->set_property_tree_sequence_number(seq_num); 1594 layer->set_property_tree_sequence_number(seq_num);
1595 }); 1595 });
1596 1596
1597 surface_id_namespace_ = proto.surface_id_namespace(); 1597 surface_id_namespace_ = proto.surface_id_namespace();
1598 next_surface_sequence_ = proto.next_surface_sequence(); 1598 next_surface_sequence_ = proto.next_surface_sequence();
1599 } 1599 }
1600 1600
1601 } // namespace cc 1601 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698