| 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/base/math_util.h" |   10 #include "cc/base/math_util.h" | 
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  637 } |  637 } | 
|  638  |  638  | 
|  639 MemoryHistory* LayerTreeImpl::memory_history() const { |  639 MemoryHistory* LayerTreeImpl::memory_history() const { | 
|  640   return layer_tree_host_impl_->memory_history(); |  640   return layer_tree_host_impl_->memory_history(); | 
|  641 } |  641 } | 
|  642  |  642  | 
|  643 bool LayerTreeImpl::device_viewport_valid_for_tile_management() const { |  643 bool LayerTreeImpl::device_viewport_valid_for_tile_management() const { | 
|  644   return layer_tree_host_impl_->device_viewport_valid_for_tile_management(); |  644   return layer_tree_host_impl_->device_viewport_valid_for_tile_management(); | 
|  645 } |  645 } | 
|  646  |  646  | 
 |  647 gfx::Size LayerTreeImpl::device_viewport_size() const { | 
 |  648   return layer_tree_host_impl_->device_viewport_size(); | 
 |  649 } | 
 |  650  | 
|  647 bool LayerTreeImpl::IsActiveTree() const { |  651 bool LayerTreeImpl::IsActiveTree() const { | 
|  648   return layer_tree_host_impl_->active_tree() == this; |  652   return layer_tree_host_impl_->active_tree() == this; | 
|  649 } |  653 } | 
|  650  |  654  | 
|  651 bool LayerTreeImpl::IsPendingTree() const { |  655 bool LayerTreeImpl::IsPendingTree() const { | 
|  652   return layer_tree_host_impl_->pending_tree() == this; |  656   return layer_tree_host_impl_->pending_tree() == this; | 
|  653 } |  657 } | 
|  654  |  658  | 
|  655 bool LayerTreeImpl::IsRecycleTree() const { |  659 bool LayerTreeImpl::IsRecycleTree() const { | 
|  656   return layer_tree_host_impl_->recycle_tree() == this; |  660   return layer_tree_host_impl_->recycle_tree() == this; | 
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  950 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() |  954 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() | 
|  951     const { |  955     const { | 
|  952   // Only the active tree needs to know about layers with copy requests, as |  956   // Only the active tree needs to know about layers with copy requests, as | 
|  953   // they are aborted if not serviced during draw. |  957   // they are aborted if not serviced during draw. | 
|  954   DCHECK(IsActiveTree()); |  958   DCHECK(IsActiveTree()); | 
|  955  |  959  | 
|  956   return layers_with_copy_output_request_; |  960   return layers_with_copy_output_request_; | 
|  957 } |  961 } | 
|  958  |  962  | 
|  959 }  // namespace cc |  963 }  // namespace cc | 
| OLD | NEW |