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

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

Issue 2231093003: cc: Remove FinishAllRendering, as it doesn't do anything anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finishallrendering: . Created 4 years, 4 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/proxy_impl.h ('k') | cc/trees/proxy_main.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/proxy_impl.h" 5 #include "cc/trees/proxy_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 if (CommitEarlyOutHandledCommit(reason)) { 198 if (CommitEarlyOutHandledCommit(reason)) {
199 SetInputThrottledUntilCommitOnImpl(false); 199 SetInputThrottledUntilCommitOnImpl(false);
200 } 200 }
201 layer_tree_host_impl_->BeginMainFrameAborted(reason, 201 layer_tree_host_impl_->BeginMainFrameAborted(reason,
202 std::move(swap_promises)); 202 std::move(swap_promises));
203 scheduler_->NotifyBeginMainFrameStarted(main_thread_start_time); 203 scheduler_->NotifyBeginMainFrameStarted(main_thread_start_time);
204 scheduler_->BeginMainFrameAborted(reason); 204 scheduler_->BeginMainFrameAborted(reason);
205 } 205 }
206 206
207 void ProxyImpl::FinishAllRenderingOnImpl(CompletionEvent* completion) {
208 TRACE_EVENT0("cc", "ProxyImpl::FinishAllRenderingOnImplThread");
209 DCHECK(IsImplThread());
210 layer_tree_host_impl_->FinishAllRendering();
211 completion->Signal();
212 }
213
214 void ProxyImpl::SetVisibleOnImpl(bool visible) { 207 void ProxyImpl::SetVisibleOnImpl(bool visible) {
215 TRACE_EVENT1("cc", "ProxyImpl::SetVisibleOnImplThread", "visible", visible); 208 TRACE_EVENT1("cc", "ProxyImpl::SetVisibleOnImplThread", "visible", visible);
216 DCHECK(IsImplThread()); 209 DCHECK(IsImplThread());
217 layer_tree_host_impl_->SetVisible(visible); 210 layer_tree_host_impl_->SetVisible(visible);
218 scheduler_->SetVisible(visible); 211 scheduler_->SetVisible(visible);
219 } 212 }
220 213
221 void ProxyImpl::ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) { 214 void ProxyImpl::ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) {
222 DCHECK(IsImplThread()); 215 DCHECK(IsImplThread());
223 216
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 bool ProxyImpl::IsMainThreadBlocked() const { 659 bool ProxyImpl::IsMainThreadBlocked() const {
667 return task_runner_provider_->IsMainThreadBlocked(); 660 return task_runner_provider_->IsMainThreadBlocked();
668 } 661 }
669 662
670 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 663 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
671 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 664 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
672 return main_thread_blocked_commit_vars_unsafe_; 665 return main_thread_blocked_commit_vars_unsafe_;
673 } 666 }
674 667
675 } // namespace cc 668 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698