| OLD | NEW |
| 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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 | 651 |
| 652 const LayerTreeSettings& LayerTreeImpl::settings() const { | 652 const LayerTreeSettings& LayerTreeImpl::settings() const { |
| 653 return layer_tree_host_impl_->settings(); | 653 return layer_tree_host_impl_->settings(); |
| 654 } | 654 } |
| 655 | 655 |
| 656 const RendererCapabilitiesImpl& LayerTreeImpl::GetRendererCapabilities() const { | 656 const RendererCapabilitiesImpl& LayerTreeImpl::GetRendererCapabilities() const { |
| 657 return layer_tree_host_impl_->GetRendererCapabilities(); | 657 return layer_tree_host_impl_->GetRendererCapabilities(); |
| 658 } | 658 } |
| 659 | 659 |
| 660 ContextProvider* LayerTreeImpl::context_provider() const { | 660 ContextProvider* LayerTreeImpl::context_provider() const { |
| 661 return output_surface()->context_provider(); | 661 return output_surface()->context_provider().get(); |
| 662 } | 662 } |
| 663 | 663 |
| 664 OutputSurface* LayerTreeImpl::output_surface() const { | 664 OutputSurface* LayerTreeImpl::output_surface() const { |
| 665 return layer_tree_host_impl_->output_surface(); | 665 return layer_tree_host_impl_->output_surface(); |
| 666 } | 666 } |
| 667 | 667 |
| 668 ResourceProvider* LayerTreeImpl::resource_provider() const { | 668 ResourceProvider* LayerTreeImpl::resource_provider() const { |
| 669 return layer_tree_host_impl_->resource_provider(); | 669 return layer_tree_host_impl_->resource_provider(); |
| 670 } | 670 } |
| 671 | 671 |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 | 1407 |
| 1408 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1408 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
| 1409 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1409 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
| 1410 } | 1410 } |
| 1411 | 1411 |
| 1412 void LayerTreeImpl::InputScrollAnimationFinished() { | 1412 void LayerTreeImpl::InputScrollAnimationFinished() { |
| 1413 layer_tree_host_impl_->ScrollEnd(); | 1413 layer_tree_host_impl_->ScrollEnd(); |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 } // namespace cc | 1416 } // namespace cc |
| OLD | NEW |