| 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_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 } | 927 } |
| 928 | 928 |
| 929 void LayerTreeHostImpl::DidInitializeVisibleTile() { | 929 void LayerTreeHostImpl::DidInitializeVisibleTile() { |
| 930 // TODO(reveman): Determine tiles that changed and only damage | 930 // TODO(reveman): Determine tiles that changed and only damage |
| 931 // what's necessary. | 931 // what's necessary. |
| 932 SetFullRootLayerDamage(); | 932 SetFullRootLayerDamage(); |
| 933 if (client_) | 933 if (client_) |
| 934 client_->DidInitializeVisibleTileOnImplThread(); | 934 client_->DidInitializeVisibleTileOnImplThread(); |
| 935 } | 935 } |
| 936 | 936 |
| 937 void LayerTreeHostImpl::DidFinishTileRasterTasks() { |
| 938 client_->DidFinishTileRasterTasks(); |
| 939 } |
| 940 |
| 937 bool LayerTreeHostImpl::ShouldClearRootRenderPass() const { | 941 bool LayerTreeHostImpl::ShouldClearRootRenderPass() const { |
| 938 return settings_.should_clear_root_render_pass; | 942 return settings_.should_clear_root_render_pass; |
| 939 } | 943 } |
| 940 | 944 |
| 941 void LayerTreeHostImpl::SetManagedMemoryPolicy( | 945 void LayerTreeHostImpl::SetManagedMemoryPolicy( |
| 942 const ManagedMemoryPolicy& policy) { | 946 const ManagedMemoryPolicy& policy) { |
| 943 if (managed_memory_policy_ == policy) | 947 if (managed_memory_policy_ == policy) |
| 944 return; | 948 return; |
| 945 | 949 |
| 946 // If there is already enough memory to draw everything imaginable and the | 950 // If there is already enough memory to draw everything imaginable and the |
| (...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2088 } | 2092 } |
| 2089 | 2093 |
| 2090 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { | 2094 void LayerTreeHostImpl::SetDebugState(const LayerTreeDebugState& debug_state) { |
| 2091 if (debug_state_.continuous_painting != debug_state.continuous_painting) | 2095 if (debug_state_.continuous_painting != debug_state.continuous_painting) |
| 2092 paint_time_counter_->ClearHistory(); | 2096 paint_time_counter_->ClearHistory(); |
| 2093 | 2097 |
| 2094 debug_state_ = debug_state; | 2098 debug_state_ = debug_state; |
| 2095 } | 2099 } |
| 2096 | 2100 |
| 2097 } // namespace cc | 2101 } // namespace cc |
| OLD | NEW |