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

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

Issue 1698813002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use custom hash in unordered_set. 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_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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 bool LayerTreeHost::AnimationStartScale(const Layer* layer, 1380 bool LayerTreeHost::AnimationStartScale(const Layer* layer,
1381 float* start_scale) const { 1381 float* start_scale) const {
1382 return animation_host_ 1382 return animation_host_
1383 ? animation_host_->AnimationStartScale( 1383 ? animation_host_->AnimationStartScale(
1384 layer->id(), LayerTreeType::ACTIVE, start_scale) 1384 layer->id(), LayerTreeType::ACTIVE, start_scale)
1385 : false; 1385 : false;
1386 } 1386 }
1387 1387
1388 bool LayerTreeHost::HasAnyAnimationTargetingProperty( 1388 bool LayerTreeHost::HasAnyAnimationTargetingProperty(
1389 const Layer* layer, 1389 const Layer* layer,
1390 Animation::TargetProperty property) const { 1390 AnimationTargetProperty property) const {
1391 return animation_host_ 1391 return animation_host_
1392 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(), 1392 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(),
1393 property) 1393 property)
1394 : false; 1394 : false;
1395 } 1395 }
1396 1396
1397 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const { 1397 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const {
1398 return animation_host_ 1398 return animation_host_
1399 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id()) 1399 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id())
1400 : true; 1400 : true;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 LayerTreeHostCommon::CallFunctionForSubtree( 1591 LayerTreeHostCommon::CallFunctionForSubtree(
1592 root_layer(), [seq_num](Layer* layer) { 1592 root_layer(), [seq_num](Layer* layer) {
1593 layer->set_property_tree_sequence_number(seq_num); 1593 layer->set_property_tree_sequence_number(seq_num);
1594 }); 1594 });
1595 1595
1596 surface_id_namespace_ = proto.surface_id_namespace(); 1596 surface_id_namespace_ = proto.surface_id_namespace();
1597 next_surface_sequence_ = proto.next_surface_sequence(); 1597 next_surface_sequence_ = proto.next_surface_sequence();
1598 } 1598 }
1599 1599
1600 } // namespace cc 1600 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698