| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 | 333 |
| 334 bool LayerImpl::HasDelegatedContent() const { | 334 bool LayerImpl::HasDelegatedContent() const { |
| 335 return false; | 335 return false; |
| 336 } | 336 } |
| 337 | 337 |
| 338 bool LayerImpl::HasContributingDelegatedRenderPasses() const { | 338 bool LayerImpl::HasContributingDelegatedRenderPasses() const { |
| 339 return false; | 339 return false; |
| 340 } | 340 } |
| 341 | 341 |
| 342 RenderPass::Id LayerImpl::FirstContributingRenderPassId() const { | 342 RenderPassId LayerImpl::FirstContributingRenderPassId() const { |
| 343 return RenderPass::Id(0, 0); | 343 return RenderPassId(0, 0); |
| 344 } | 344 } |
| 345 | 345 |
| 346 RenderPass::Id LayerImpl::NextContributingRenderPassId(RenderPass::Id id) | 346 RenderPassId LayerImpl::NextContributingRenderPassId(RenderPassId id) const { |
| 347 const { | 347 return RenderPassId(0, 0); |
| 348 return RenderPass::Id(0, 0); | |
| 349 } | 348 } |
| 350 | 349 |
| 351 ResourceProvider::ResourceId LayerImpl::ContentsResourceId() const { | 350 ResourceProvider::ResourceId LayerImpl::ContentsResourceId() const { |
| 352 NOTREACHED(); | 351 NOTREACHED(); |
| 353 return 0; | 352 return 0; |
| 354 } | 353 } |
| 355 | 354 |
| 356 void LayerImpl::SetSentScrollDelta(const gfx::Vector2d& sent_scroll_delta) { | 355 void LayerImpl::SetSentScrollDelta(const gfx::Vector2d& sent_scroll_delta) { |
| 357 // Pending tree never has sent scroll deltas | 356 // Pending tree never has sent scroll deltas |
| 358 DCHECK(layer_tree_impl()->IsActiveTree()); | 357 DCHECK(layer_tree_impl()->IsActiveTree()); |
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 } | 1534 } |
| 1536 | 1535 |
| 1537 void LayerImpl::NotifyAnimationFinished( | 1536 void LayerImpl::NotifyAnimationFinished( |
| 1538 base::TimeTicks monotonic_time, | 1537 base::TimeTicks monotonic_time, |
| 1539 Animation::TargetProperty target_property) { | 1538 Animation::TargetProperty target_property) { |
| 1540 if (target_property == Animation::ScrollOffset) | 1539 if (target_property == Animation::ScrollOffset) |
| 1541 layer_tree_impl_->InputScrollAnimationFinished(); | 1540 layer_tree_impl_->InputScrollAnimationFinished(); |
| 1542 } | 1541 } |
| 1543 | 1542 |
| 1544 } // namespace cc | 1543 } // namespace cc |
| OLD | NEW |