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

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

Issue 1841083007: Remove SendBeginFramesToChildren plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_output_surface_client_set_beginframesource
Patch Set: Rebase Created 4 years, 8 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_main.h ('k') | cc/trees/remote_channel_impl.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_main.h" 5 #include "cc/trees/proxy_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 { 422 {
423 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 423 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
424 CompletionEvent completion; 424 CompletionEvent completion;
425 channel_main_->MainFrameWillHappenOnImplForTesting(&completion, 425 channel_main_->MainFrameWillHappenOnImplForTesting(&completion,
426 &main_frame_will_happen); 426 &main_frame_will_happen);
427 completion.Wait(); 427 completion.Wait();
428 } 428 }
429 return main_frame_will_happen; 429 return main_frame_will_happen;
430 } 430 }
431 431
432 void ProxyMain::SetChildrenNeedBeginFrames(bool children_need_begin_frames) {
433 NOTREACHED() << "Only used by SingleThreadProxy";
434 }
435
436 void ProxyMain::SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) { 432 void ProxyMain::SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) {
437 NOTREACHED() << "Only used by SingleProxyMain"; 433 NOTREACHED() << "Only used by SingleProxyMain";
438 } 434 }
439 435
440 void ProxyMain::ReleaseOutputSurface() { 436 void ProxyMain::ReleaseOutputSurface() {
441 DCHECK(IsMainThread()); 437 DCHECK(IsMainThread());
442 DCHECK(layer_tree_host_->output_surface_lost()); 438 DCHECK(layer_tree_host_->output_surface_lost());
443 439
444 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 440 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
445 CompletionEvent completion; 441 CompletionEvent completion;
(...skipping 23 matching lines...) Expand all
469 return false; 465 return false;
470 channel_main_->SetNeedsCommitOnImpl(); 466 channel_main_->SetNeedsCommitOnImpl();
471 return true; 467 return true;
472 } 468 }
473 469
474 bool ProxyMain::IsMainThread() const { 470 bool ProxyMain::IsMainThread() const {
475 return task_runner_provider_->IsMainThread(); 471 return task_runner_provider_->IsMainThread();
476 } 472 }
477 473
478 } // namespace cc 474 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/remote_channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698