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

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

Issue 723713003: cc: Add SetChildrenNeedBeginFrames() & SendBeginFramesToChildren() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 1 month 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/thread_proxy.h ('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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 } 1088 }
1089 1089
1090 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() { 1090 base::TimeDelta ThreadProxy::CommitToActivateDurationEstimate() {
1091 return impl().timing_history.CommitToActivateDurationEstimate(); 1091 return impl().timing_history.CommitToActivateDurationEstimate();
1092 } 1092 }
1093 1093
1094 void ThreadProxy::DidBeginImplFrameDeadline() { 1094 void ThreadProxy::DidBeginImplFrameDeadline() {
1095 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame(); 1095 impl().layer_tree_host_impl->ResetCurrentBeginFrameArgsForNextFrame();
1096 } 1096 }
1097 1097
1098 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
1099 NOTREACHED() << "Only used by SingleThreadProxy";
1100 }
1101
1098 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1102 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1099 DCHECK(IsImplThread()); 1103 DCHECK(IsImplThread());
1100 impl().scheduler->NotifyReadyToCommit(); 1104 impl().scheduler->NotifyReadyToCommit();
1101 } 1105 }
1102 1106
1103 void ThreadProxy::DidCommitAndDrawFrame() { 1107 void ThreadProxy::DidCommitAndDrawFrame() {
1104 DCHECK(IsMainThread()); 1108 DCHECK(IsMainThread());
1105 layer_tree_host()->DidCommitAndDrawFrame(); 1109 layer_tree_host()->DidCommitAndDrawFrame();
1106 } 1110 }
1107 1111
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 FROM_HERE, 1247 FROM_HERE,
1244 base::Bind(&ThreadProxy::MainFrameWillHappenOnImplThreadForTesting, 1248 base::Bind(&ThreadProxy::MainFrameWillHappenOnImplThreadForTesting,
1245 impl_thread_weak_ptr_, 1249 impl_thread_weak_ptr_,
1246 &completion, 1250 &completion,
1247 &main_frame_will_happen)); 1251 &main_frame_will_happen));
1248 completion.Wait(); 1252 completion.Wait();
1249 } 1253 }
1250 return main_frame_will_happen; 1254 return main_frame_will_happen;
1251 } 1255 }
1252 1256
1257 void ThreadProxy::SetChildrenNeedBeginFrames(bool children_need_begin_frames) {
1258 NOTREACHED() << "Only used by SingleThreadProxy";
1259 }
1260
1253 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting( 1261 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting(
1254 CompletionEvent* completion, 1262 CompletionEvent* completion,
1255 bool* main_frame_will_happen) { 1263 bool* main_frame_will_happen) {
1256 DCHECK(IsImplThread()); 1264 DCHECK(IsImplThread());
1257 if (impl().layer_tree_host_impl->output_surface()) { 1265 if (impl().layer_tree_host_impl->output_surface()) {
1258 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen(); 1266 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen();
1259 } else { 1267 } else {
1260 *main_frame_will_happen = false; 1268 *main_frame_will_happen = false;
1261 } 1269 }
1262 completion->Signal(); 1270 completion->Signal();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 1341
1334 impl().timing_history.DidActivateSyncTree(); 1342 impl().timing_history.DidActivateSyncTree();
1335 } 1343 }
1336 1344
1337 void ThreadProxy::DidManageTiles() { 1345 void ThreadProxy::DidManageTiles() {
1338 DCHECK(IsImplThread()); 1346 DCHECK(IsImplThread());
1339 impl().scheduler->DidManageTiles(); 1347 impl().scheduler->DidManageTiles();
1340 } 1348 }
1341 1349
1342 } // namespace cc 1350 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698