| 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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/debug/traced_value.h" | 10 #include "cc/debug/traced_value.h" |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 const LayerTreeSettings& LayerTreeImpl::settings() const { | 403 const LayerTreeSettings& LayerTreeImpl::settings() const { |
| 404 return layer_tree_host_impl_->settings(); | 404 return layer_tree_host_impl_->settings(); |
| 405 } | 405 } |
| 406 | 406 |
| 407 const RendererCapabilities& LayerTreeImpl::GetRendererCapabilities() const { | 407 const RendererCapabilities& LayerTreeImpl::GetRendererCapabilities() const { |
| 408 return layer_tree_host_impl_->GetRendererCapabilities(); | 408 return layer_tree_host_impl_->GetRendererCapabilities(); |
| 409 } | 409 } |
| 410 | 410 |
| 411 ContextProvider* LayerTreeImpl::context_provider() const { |
| 412 return output_surface()->context_provider(); |
| 413 } |
| 414 |
| 411 OutputSurface* LayerTreeImpl::output_surface() const { | 415 OutputSurface* LayerTreeImpl::output_surface() const { |
| 412 return layer_tree_host_impl_->output_surface(); | 416 return layer_tree_host_impl_->output_surface(); |
| 413 } | 417 } |
| 414 | 418 |
| 415 ResourceProvider* LayerTreeImpl::resource_provider() const { | 419 ResourceProvider* LayerTreeImpl::resource_provider() const { |
| 416 return layer_tree_host_impl_->resource_provider(); | 420 return layer_tree_host_impl_->resource_provider(); |
| 417 } | 421 } |
| 418 | 422 |
| 419 TileManager* LayerTreeImpl::tile_manager() const { | 423 TileManager* LayerTreeImpl::tile_manager() const { |
| 420 return layer_tree_host_impl_->tile_manager(); | 424 return layer_tree_host_impl_->tile_manager(); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() | 635 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() |
| 632 const { | 636 const { |
| 633 // Only the active tree needs to know about layers with copy requests, as | 637 // Only the active tree needs to know about layers with copy requests, as |
| 634 // they are aborted if not serviced during draw. | 638 // they are aborted if not serviced during draw. |
| 635 DCHECK(IsActiveTree()); | 639 DCHECK(IsActiveTree()); |
| 636 | 640 |
| 637 return layers_with_copy_output_request_; | 641 return layers_with_copy_output_request_; |
| 638 } | 642 } |
| 639 | 643 |
| 640 } // namespace cc | 644 } // namespace cc |
| OLD | NEW |