| 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/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 layer_tree_host_impl_->resource_provider()); | 229 layer_tree_host_impl_->resource_provider()); |
| 230 update_controller->Finalize(); | 230 update_controller->Finalize(); |
| 231 | 231 |
| 232 if (layer_tree_host_impl_->EvictedUIResourcesExist()) | 232 if (layer_tree_host_impl_->EvictedUIResourcesExist()) |
| 233 layer_tree_host_->RecreateUIResources(); | 233 layer_tree_host_->RecreateUIResources(); |
| 234 | 234 |
| 235 layer_tree_host_->FinishCommitOnImplThread(layer_tree_host_impl_.get()); | 235 layer_tree_host_->FinishCommitOnImplThread(layer_tree_host_impl_.get()); |
| 236 | 236 |
| 237 layer_tree_host_impl_->CommitComplete(); | 237 layer_tree_host_impl_->CommitComplete(); |
| 238 | 238 |
| 239 #if DCHECK_IS_ON | 239 #if DCHECK_IS_ON() |
| 240 // In the single-threaded case, the scale and scroll deltas should never be | 240 // In the single-threaded case, the scale and scroll deltas should never be |
| 241 // touched on the impl layer tree. | 241 // touched on the impl layer tree. |
| 242 scoped_ptr<ScrollAndScaleSet> scroll_info = | 242 scoped_ptr<ScrollAndScaleSet> scroll_info = |
| 243 layer_tree_host_impl_->ProcessScrollDeltas(); | 243 layer_tree_host_impl_->ProcessScrollDeltas(); |
| 244 DCHECK(!scroll_info->scrolls.size()); | 244 DCHECK(!scroll_info->scrolls.size()); |
| 245 DCHECK_EQ(1.f, scroll_info->page_scale_delta); | 245 DCHECK_EQ(1.f, scroll_info->page_scale_delta); |
| 246 #endif | 246 #endif |
| 247 } | 247 } |
| 248 | 248 |
| 249 if (layer_tree_host_->settings().impl_side_painting) { | 249 if (layer_tree_host_->settings().impl_side_painting) { |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 | 806 |
| 807 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 807 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
| 808 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 808 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
| 809 } | 809 } |
| 810 | 810 |
| 811 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { | 811 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { |
| 812 layer_tree_host_->SendBeginFramesToChildren(args); | 812 layer_tree_host_->SendBeginFramesToChildren(args); |
| 813 } | 813 } |
| 814 | 814 |
| 815 } // namespace cc | 815 } // namespace cc |
| OLD | NEW |