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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "cc/layer_tree_host_common.h" | 8 #include "cc/layer_tree_host_common.h" |
9 #include "cc/layer_tree_host_impl.h" | 9 #include "cc/layer_tree_host_impl.h" |
10 #include "ui/gfx/vector2d_conversions.h" | 10 #include "ui/gfx/vector2d_conversions.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 | 229 |
230 TileManager* LayerTreeImpl::tile_manager() const { | 230 TileManager* LayerTreeImpl::tile_manager() const { |
231 return layer_tree_host_impl_->tileManager(); | 231 return layer_tree_host_impl_->tileManager(); |
232 } | 232 } |
233 | 233 |
234 FrameRateCounter* LayerTreeImpl::frame_rate_counter() const { | 234 FrameRateCounter* LayerTreeImpl::frame_rate_counter() const { |
235 return layer_tree_host_impl_->fpsCounter(); | 235 return layer_tree_host_impl_->fpsCounter(); |
236 } | 236 } |
237 | 237 |
| 238 PaintTimeCounter* LayerTreeImpl::paint_time_counter() const { |
| 239 return layer_tree_host_impl_->paintTimeCounter(); |
| 240 } |
| 241 |
238 bool LayerTreeImpl::IsActiveTree() const { | 242 bool LayerTreeImpl::IsActiveTree() const { |
239 return layer_tree_host_impl_->activeTree() == this; | 243 return layer_tree_host_impl_->activeTree() == this; |
240 } | 244 } |
241 | 245 |
242 bool LayerTreeImpl::IsPendingTree() const { | 246 bool LayerTreeImpl::IsPendingTree() const { |
243 return layer_tree_host_impl_->pendingTree() == this; | 247 return layer_tree_host_impl_->pendingTree() == this; |
244 } | 248 } |
245 | 249 |
246 LayerImpl* LayerTreeImpl::FindActiveTreeLayerById(int id) { | 250 LayerImpl* LayerTreeImpl::FindActiveTreeLayerById(int id) { |
247 LayerTreeImpl* tree = layer_tree_host_impl_->activeTree(); | 251 LayerTreeImpl* tree = layer_tree_host_impl_->activeTree(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 | 303 |
300 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 304 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { |
301 return layer_tree_host_impl_->animationRegistrar(); | 305 return layer_tree_host_impl_->animationRegistrar(); |
302 } | 306 } |
303 | 307 |
304 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const { | 308 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const { |
305 return layer_tree_host_impl_->pinchZoomViewport(); | 309 return layer_tree_host_impl_->pinchZoomViewport(); |
306 } | 310 } |
307 | 311 |
308 } // namespace cc | 312 } // namespace cc |
OLD | NEW |