| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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.h" | 5 #include "cc/layers/layer.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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 return; | 1294 return; |
| 1295 may_contain_video_ = yes; | 1295 may_contain_video_ = yes; |
| 1296 SetNeedsPushProperties(); | 1296 SetNeedsPushProperties(); |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 void Layer::SetScrollbarsHiddenFromImplSide(bool hidden) { | 1299 void Layer::SetScrollbarsHiddenFromImplSide(bool hidden) { |
| 1300 if (inputs_.client) | 1300 if (inputs_.client) |
| 1301 inputs_.client->didChangeScrollbarsHidden(hidden); | 1301 inputs_.client->didChangeScrollbarsHidden(hidden); |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 bool Layer::FilterIsAnimating() const { | |
| 1305 return GetMutatorHost()->IsAnimatingFilterProperty( | |
| 1306 element_id(), GetElementTypeForAnimation()); | |
| 1307 } | |
| 1308 | |
| 1309 bool Layer::TransformIsAnimating() const { | 1304 bool Layer::TransformIsAnimating() const { |
| 1310 return GetMutatorHost()->IsAnimatingTransformProperty( | 1305 return GetMutatorHost()->IsAnimatingTransformProperty( |
| 1311 element_id(), GetElementTypeForAnimation()); | 1306 element_id(), GetElementTypeForAnimation()); |
| 1312 } | 1307 } |
| 1313 | 1308 |
| 1314 gfx::ScrollOffset Layer::ScrollOffsetForAnimation() const { | 1309 gfx::ScrollOffset Layer::ScrollOffsetForAnimation() const { |
| 1315 return CurrentScrollOffset(); | 1310 return CurrentScrollOffset(); |
| 1316 } | 1311 } |
| 1317 | 1312 |
| 1318 // On<Property>Animated is called due to an ongoing accelerated animation. | 1313 // On<Property>Animated is called due to an ongoing accelerated animation. |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 ->subtree_has_copy_request; | 1431 ->subtree_has_copy_request; |
| 1437 } | 1432 } |
| 1438 | 1433 |
| 1439 gfx::Transform Layer::ScreenSpaceTransform() const { | 1434 gfx::Transform Layer::ScreenSpaceTransform() const { |
| 1440 DCHECK_NE(transform_tree_index_, TransformTree::kInvalidNodeId); | 1435 DCHECK_NE(transform_tree_index_, TransformTree::kInvalidNodeId); |
| 1441 return draw_property_utils::ScreenSpaceTransform( | 1436 return draw_property_utils::ScreenSpaceTransform( |
| 1442 this, layer_tree_host_->property_trees()->transform_tree); | 1437 this, layer_tree_host_->property_trees()->transform_tree); |
| 1443 } | 1438 } |
| 1444 | 1439 |
| 1445 } // namespace cc | 1440 } // namespace cc |
| OLD | NEW |