| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 LayerTreeImpl* tree = layer_tree_host_impl_->pendingTree(); | 222 LayerTreeImpl* tree = layer_tree_host_impl_->pendingTree(); |
| 223 if (!tree) | 223 if (!tree) |
| 224 return NULL; | 224 return NULL; |
| 225 return tree->LayerById(id); | 225 return tree->LayerById(id); |
| 226 } | 226 } |
| 227 | 227 |
| 228 int LayerTreeImpl::MaxTextureSize() const { | 228 int LayerTreeImpl::MaxTextureSize() const { |
| 229 return layer_tree_host_impl_->rendererCapabilities().maxTextureSize; | 229 return layer_tree_host_impl_->rendererCapabilities().maxTextureSize; |
| 230 } | 230 } |
| 231 | 231 |
| 232 bool LayerTreeImpl::PinchGestureActive() const { |
| 233 return layer_tree_host_impl_->pinchGestureActive(); |
| 234 } |
| 235 |
| 232 void LayerTreeImpl::SetNeedsRedraw() { | 236 void LayerTreeImpl::SetNeedsRedraw() { |
| 233 layer_tree_host_impl_->setNeedsRedraw(); | 237 layer_tree_host_impl_->setNeedsRedraw(); |
| 234 } | 238 } |
| 235 | 239 |
| 236 void LayerTreeImpl::SetNeedsUpdateDrawProperties() { | 240 void LayerTreeImpl::SetNeedsUpdateDrawProperties() { |
| 237 layer_tree_host_impl_->setNeedsUpdateDrawProperties(); | 241 layer_tree_host_impl_->setNeedsUpdateDrawProperties(); |
| 238 } | 242 } |
| 239 | 243 |
| 240 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { | 244 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { |
| 241 return layer_tree_host_impl_->debugState(); | 245 return layer_tree_host_impl_->debugState(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 263 | 267 |
| 264 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 268 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { |
| 265 return layer_tree_host_impl_->animationRegistrar(); | 269 return layer_tree_host_impl_->animationRegistrar(); |
| 266 } | 270 } |
| 267 | 271 |
| 268 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const { | 272 const PinchZoomViewport& LayerTreeImpl::pinch_zoom_viewport() const { |
| 269 return layer_tree_host_impl_->pinchZoomViewport(); | 273 return layer_tree_host_impl_->pinchZoomViewport(); |
| 270 } | 274 } |
| 271 | 275 |
| 272 } // namespace cc | 276 } // namespace cc |
| OLD | NEW |