Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/tree_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698