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/layer_tree_impl.h" | 5 #include "cc/layer_tree_impl.h" |
6 | 6 |
7 #include "cc/layer_tree_host_common.h" | 7 #include "cc/layer_tree_host_common.h" |
8 #include "cc/layer_tree_host_impl.h" | 8 #include "cc/layer_tree_host_impl.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 currently_scrolling_layer_ = NULL; | 61 currently_scrolling_layer_ = NULL; |
62 | 62 |
63 return root_layer_.Pass(); | 63 return root_layer_.Pass(); |
64 } | 64 } |
65 | 65 |
66 void LayerTreeImpl::ClearCurrentlyScrollingLayer() { | 66 void LayerTreeImpl::ClearCurrentlyScrollingLayer() { |
67 currently_scrolling_layer_ = NULL; | 67 currently_scrolling_layer_ = NULL; |
68 scrolling_layer_id_from_previous_tree_ = 0; | 68 scrolling_layer_id_from_previous_tree_ = 0; |
69 } | 69 } |
70 | 70 |
| 71 const LayerTreeSettings& LayerTreeImpl::settings() const { |
| 72 return layer_tree_host_impl_->settings(); |
| 73 } |
| 74 |
| 75 OutputSurface* LayerTreeImpl::output_surface() const { |
| 76 return layer_tree_host_impl_->outputSurface(); |
| 77 } |
| 78 |
| 79 ResourceProvider* LayerTreeImpl::resource_provider() const { |
| 80 return layer_tree_host_impl_->resourceProvider(); |
| 81 } |
| 82 |
| 83 TileManager* LayerTreeImpl::tile_manager() const { |
| 84 return layer_tree_host_impl_->tileManager(); |
| 85 } |
| 86 |
| 87 FrameRateCounter* LayerTreeImpl::frame_rate_counter() const { |
| 88 return layer_tree_host_impl_->fpsCounter(); |
| 89 } |
| 90 |
| 91 void LayerTreeImpl::SetNeedsRedraw() { |
| 92 layer_tree_host_impl_->setNeedsRedraw(); |
| 93 } |
| 94 |
| 95 void LayerTreeImpl::SetNeedsUpdateDrawProperties() { |
| 96 layer_tree_host_impl_->setNeedsUpdateDrawProperties(); |
| 97 } |
| 98 |
| 99 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { |
| 100 return layer_tree_host_impl_->debugState(); |
| 101 } |
| 102 |
| 103 float LayerTreeImpl::device_scale_factor() const { |
| 104 return layer_tree_host_impl_->deviceScaleFactor(); |
| 105 } |
| 106 |
| 107 const gfx::Size& LayerTreeImpl::device_viewport_size() const { |
| 108 return layer_tree_host_impl_->deviceViewportSize(); |
| 109 } |
| 110 |
| 111 const gfx::Size& LayerTreeImpl::layout_viewport_size() const { |
| 112 return layer_tree_host_impl_->layoutViewportSize(); |
| 113 } |
| 114 |
| 115 std::string LayerTreeImpl::layer_tree_as_text() const { |
| 116 return layer_tree_host_impl_->layerTreeAsText(); |
| 117 } |
| 118 |
| 119 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { |
| 120 return layer_tree_host_impl_->debugRectHistory(); |
| 121 } |
| 122 |
| 123 |
71 } // namespace cc | 124 } // namespace cc |
OLD | NEW |