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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 &main_frame_will_happen)); 1251 &main_frame_will_happen));
1252 completion.Wait(); 1252 completion.Wait();
1253 } 1253 }
1254 return main_frame_will_happen; 1254 return main_frame_will_happen;
1255 } 1255 }
1256 1256
1257 void ThreadProxy::SetChildrenNeedBeginFrames(bool children_need_begin_frames) { 1257 void ThreadProxy::SetChildrenNeedBeginFrames(bool children_need_begin_frames) {
1258 NOTREACHED() << "Only used by SingleThreadProxy"; 1258 NOTREACHED() << "Only used by SingleThreadProxy";
1259 } 1259 }
1260 1260
1261 void ThreadProxy::SetAuthoritativeVSyncInterval(base::TimeDelta interval) {
1262 NOTREACHED() << "Only used by SingleThreadProxy";
1263 }
1264
1261 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting( 1265 void ThreadProxy::MainFrameWillHappenOnImplThreadForTesting(
1262 CompletionEvent* completion, 1266 CompletionEvent* completion,
1263 bool* main_frame_will_happen) { 1267 bool* main_frame_will_happen) {
1264 DCHECK(IsImplThread()); 1268 DCHECK(IsImplThread());
1265 if (impl().layer_tree_host_impl->output_surface()) { 1269 if (impl().layer_tree_host_impl->output_surface()) {
1266 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen(); 1270 *main_frame_will_happen = impl().scheduler->MainFrameForTestingWillHappen();
1267 } else { 1271 } else {
1268 *main_frame_will_happen = false; 1272 *main_frame_will_happen = false;
1269 } 1273 }
1270 completion->Signal(); 1274 completion->Signal();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1345
1342 impl().timing_history.DidActivateSyncTree(); 1346 impl().timing_history.DidActivateSyncTree();
1343 } 1347 }
1344 1348
1345 void ThreadProxy::DidManageTiles() { 1349 void ThreadProxy::DidManageTiles() {
1346 DCHECK(IsImplThread()); 1350 DCHECK(IsImplThread());
1347 impl().scheduler->DidManageTiles(); 1351 impl().scheduler->DidManageTiles();
1348 } 1352 }
1349 1353
1350 } // namespace cc 1354 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698