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

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

Issue 189553007: cc: modify the waiting condition of forced commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | no next file » | 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/thread_proxy.h" 5 #include "cc/trees/thread_proxy.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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 if (!impl().layer_tree_host_impl) { 200 if (!impl().layer_tree_host_impl) {
201 begin_main_frame_sent_completion->Signal(); 201 begin_main_frame_sent_completion->Signal();
202 request->success = false; 202 request->success = false;
203 request->completion.Signal(); 203 request->completion.Signal();
204 return; 204 return;
205 } 205 }
206 206
207 impl().readback_request = request; 207 impl().readback_request = request;
208 208
209 impl().scheduler->SetNeedsForcedCommitForReadback(); 209 impl().scheduler->SetNeedsForcedCommitForReadback();
210 if (impl().scheduler->CommitPending()) { 210 if (impl().scheduler->IsBeginMainFrameSent()) {
211 begin_main_frame_sent_completion->Signal(); 211 begin_main_frame_sent_completion->Signal();
212 return; 212 return;
213 } 213 }
214 214
215 impl().begin_main_frame_sent_completion_event = 215 impl().begin_main_frame_sent_completion_event =
216 begin_main_frame_sent_completion; 216 begin_main_frame_sent_completion;
217 } 217 }
218 218
219 void ThreadProxy::FinishAllRendering() { 219 void ThreadProxy::FinishAllRendering() {
220 DCHECK(Proxy::IsMainThread()); 220 DCHECK(Proxy::IsMainThread());
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 1735
1736 impl().timing_history.DidActivatePendingTree(); 1736 impl().timing_history.DidActivatePendingTree();
1737 } 1737 }
1738 1738
1739 void ThreadProxy::DidManageTiles() { 1739 void ThreadProxy::DidManageTiles() {
1740 DCHECK(IsImplThread()); 1740 DCHECK(IsImplThread());
1741 impl().scheduler->DidManageTiles(); 1741 impl().scheduler->DidManageTiles();
1742 } 1742 }
1743 1743
1744 } // namespace cc 1744 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698