OLD | NEW |
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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/debug/trace_event_argument.h" | 8 #include "base/debug/trace_event_argument.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 } | 1393 } |
1394 | 1394 |
1395 void LayerImpl::RemoveDependentNeedsPushProperties() { | 1395 void LayerImpl::RemoveDependentNeedsPushProperties() { |
1396 num_dependents_need_push_properties_--; | 1396 num_dependents_need_push_properties_--; |
1397 DCHECK_GE(num_dependents_need_push_properties_, 0); | 1397 DCHECK_GE(num_dependents_need_push_properties_, 0); |
1398 | 1398 |
1399 if (!parent_should_know_need_push_properties() && parent_) | 1399 if (!parent_should_know_need_push_properties() && parent_) |
1400 parent_->RemoveDependentNeedsPushProperties(); | 1400 parent_->RemoveDependentNeedsPushProperties(); |
1401 } | 1401 } |
1402 | 1402 |
| 1403 void LayerImpl::GetAllTilesForTracing(std::set<const Tile*>* tiles) const { |
| 1404 } |
| 1405 |
1403 void LayerImpl::AsValueInto(base::debug::TracedValue* state) const { | 1406 void LayerImpl::AsValueInto(base::debug::TracedValue* state) const { |
1404 TracedValue::MakeDictIntoImplicitSnapshotWithCategory( | 1407 TracedValue::MakeDictIntoImplicitSnapshotWithCategory( |
1405 TRACE_DISABLED_BY_DEFAULT("cc.debug"), | 1408 TRACE_DISABLED_BY_DEFAULT("cc.debug"), |
1406 state, | 1409 state, |
1407 "cc::LayerImpl", | 1410 "cc::LayerImpl", |
1408 LayerTypeAsString(), | 1411 LayerTypeAsString(), |
1409 this); | 1412 this); |
1410 state->SetInteger("layer_id", id()); | 1413 state->SetInteger("layer_id", id()); |
1411 state->BeginDictionary("bounds"); | 1414 state->BeginDictionary("bounds"); |
1412 MathUtil::AddToTracedValue(bounds_, state); | 1415 MathUtil::AddToTracedValue(bounds_, state); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 } | 1538 } |
1536 | 1539 |
1537 void LayerImpl::NotifyAnimationFinished( | 1540 void LayerImpl::NotifyAnimationFinished( |
1538 base::TimeTicks monotonic_time, | 1541 base::TimeTicks monotonic_time, |
1539 Animation::TargetProperty target_property) { | 1542 Animation::TargetProperty target_property) { |
1540 if (target_property == Animation::ScrollOffset) | 1543 if (target_property == Animation::ScrollOffset) |
1541 layer_tree_impl_->InputScrollAnimationFinished(); | 1544 layer_tree_impl_->InputScrollAnimationFinished(); |
1542 } | 1545 } |
1543 | 1546 |
1544 } // namespace cc | 1547 } // namespace cc |
OLD | NEW |