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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 1981283005: cc : Delete Opacity/Transform/FilterIsAnimatingOnImplOnly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/layers/layer_impl.h ('k') | cc/trees/layer_tree_impl.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/layers/layer_impl.h" 5 #include "cc/layers/layer_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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 } 962 }
963 963
964 bool LayerImpl::FilterIsAnimating() const { 964 bool LayerImpl::FilterIsAnimating() const {
965 return layer_tree_impl_->IsAnimatingFilterProperty(this); 965 return layer_tree_impl_->IsAnimatingFilterProperty(this);
966 } 966 }
967 967
968 bool LayerImpl::HasPotentiallyRunningFilterAnimation() const { 968 bool LayerImpl::HasPotentiallyRunningFilterAnimation() const {
969 return layer_tree_impl_->HasPotentiallyRunningFilterAnimation(this); 969 return layer_tree_impl_->HasPotentiallyRunningFilterAnimation(this);
970 } 970 }
971 971
972 bool LayerImpl::FilterIsAnimatingOnImplOnly() const {
973 return layer_tree_impl_->FilterIsAnimatingOnImplOnly(this);
974 }
975
976 void LayerImpl::SetBackgroundFilters( 972 void LayerImpl::SetBackgroundFilters(
977 const FilterOperations& filters) { 973 const FilterOperations& filters) {
978 if (background_filters_ == filters) 974 if (background_filters_ == filters)
979 return; 975 return;
980 976
981 background_filters_ = filters; 977 background_filters_ = filters;
982 NoteLayerPropertyChanged(); 978 NoteLayerPropertyChanged();
983 } 979 }
984 980
985 void LayerImpl::SetMasksToBounds(bool masks_to_bounds) { 981 void LayerImpl::SetMasksToBounds(bool masks_to_bounds) {
(...skipping 18 matching lines...) Expand all
1004 } 1000 }
1005 1001
1006 bool LayerImpl::OpacityIsAnimating() const { 1002 bool LayerImpl::OpacityIsAnimating() const {
1007 return layer_tree_impl_->IsAnimatingOpacityProperty(this); 1003 return layer_tree_impl_->IsAnimatingOpacityProperty(this);
1008 } 1004 }
1009 1005
1010 bool LayerImpl::HasPotentiallyRunningOpacityAnimation() const { 1006 bool LayerImpl::HasPotentiallyRunningOpacityAnimation() const {
1011 return layer_tree_impl_->HasPotentiallyRunningOpacityAnimation(this); 1007 return layer_tree_impl_->HasPotentiallyRunningOpacityAnimation(this);
1012 } 1008 }
1013 1009
1014 bool LayerImpl::OpacityIsAnimatingOnImplOnly() const {
1015 return layer_tree_impl_->OpacityIsAnimatingOnImplOnly(this);
1016 }
1017
1018 void LayerImpl::SetElementId(uint64_t element_id) { 1010 void LayerImpl::SetElementId(uint64_t element_id) {
1019 if (element_id == element_id_) 1011 if (element_id == element_id_)
1020 return; 1012 return;
1021 1013
1022 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), 1014 TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("compositor-worker"),
1023 "LayerImpl::SetElementId", "id", element_id); 1015 "LayerImpl::SetElementId", "id", element_id);
1024 1016
1025 layer_tree_impl_->RemoveFromElementMap(this); 1017 layer_tree_impl_->RemoveFromElementMap(this);
1026 element_id_ = element_id; 1018 element_id_ = element_id;
1027 layer_tree_impl_->AddToElementMap(this); 1019 layer_tree_impl_->AddToElementMap(this);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 } 1061 }
1070 1062
1071 bool LayerImpl::TransformIsAnimating() const { 1063 bool LayerImpl::TransformIsAnimating() const {
1072 return layer_tree_impl_->IsAnimatingTransformProperty(this); 1064 return layer_tree_impl_->IsAnimatingTransformProperty(this);
1073 } 1065 }
1074 1066
1075 bool LayerImpl::HasPotentiallyRunningTransformAnimation() const { 1067 bool LayerImpl::HasPotentiallyRunningTransformAnimation() const {
1076 return layer_tree_impl_->HasPotentiallyRunningTransformAnimation(this); 1068 return layer_tree_impl_->HasPotentiallyRunningTransformAnimation(this);
1077 } 1069 }
1078 1070
1079 bool LayerImpl::TransformIsAnimatingOnImplOnly() const {
1080 return layer_tree_impl_->TransformIsAnimatingOnImplOnly(this);
1081 }
1082
1083 bool LayerImpl::HasOnlyTranslationTransforms() const { 1071 bool LayerImpl::HasOnlyTranslationTransforms() const {
1084 return layer_tree_impl_->HasOnlyTranslationTransforms(this); 1072 return layer_tree_impl_->HasOnlyTranslationTransforms(this);
1085 } 1073 }
1086 1074
1087 bool LayerImpl::AnimationsPreserveAxisAlignment() const { 1075 bool LayerImpl::AnimationsPreserveAxisAlignment() const {
1088 return layer_tree_impl_->AnimationsPreserveAxisAlignment(this); 1076 return layer_tree_impl_->AnimationsPreserveAxisAlignment(this);
1089 } 1077 }
1090 1078
1091 bool LayerImpl::MaximumTargetScale(float* max_scale) const { 1079 bool LayerImpl::MaximumTargetScale(float* max_scale) const {
1092 return layer_tree_impl_->MaximumTargetScale(this, max_scale); 1080 return layer_tree_impl_->MaximumTargetScale(this, max_scale);
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 .layer_transforms_should_scale_layer_contents) { 1398 .layer_transforms_should_scale_layer_contents) {
1411 return default_scale; 1399 return default_scale;
1412 } 1400 }
1413 1401
1414 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1402 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1415 DrawTransform(), default_scale); 1403 DrawTransform(), default_scale);
1416 return std::max(transform_scales.x(), transform_scales.y()); 1404 return std::max(transform_scales.x(), transform_scales.y());
1417 } 1405 }
1418 1406
1419 } // namespace cc 1407 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698