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

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: Remove some comments 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
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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 { 417 {
418 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 418 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
419 CompletionEvent completion; 419 CompletionEvent completion;
420 channel_main_->MainFrameWillHappenOnImplForTesting(&completion, 420 channel_main_->MainFrameWillHappenOnImplForTesting(&completion,
421 &main_frame_will_happen); 421 &main_frame_will_happen);
422 completion.Wait(); 422 completion.Wait();
423 } 423 }
424 return main_frame_will_happen; 424 return main_frame_will_happen;
425 } 425 }
426 426
427 void ProxyMain::SetChildrenNeedBeginFrames(bool children_need_begin_frames) {
428 NOTREACHED() << "Only used by SingleThreadProxy";
429 }
430
431 void ProxyMain::SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) { 427 void ProxyMain::SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) {
432 NOTREACHED() << "Only used by SingleProxyMain"; 428 NOTREACHED() << "Only used by SingleProxyMain";
433 } 429 }
434 430
435 void ProxyMain::ReleaseOutputSurface() { 431 void ProxyMain::ReleaseOutputSurface() {
436 DCHECK(IsMainThread()); 432 DCHECK(IsMainThread());
437 DCHECK(layer_tree_host_->output_surface_lost()); 433 DCHECK(layer_tree_host_->output_surface_lost());
438 434
439 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 435 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
440 CompletionEvent completion; 436 CompletionEvent completion;
(...skipping 23 matching lines...) Expand all
464 return false; 460 return false;
465 channel_main_->SetNeedsCommitOnImpl(); 461 channel_main_->SetNeedsCommitOnImpl();
466 return true; 462 return true;
467 } 463 }
468 464
469 bool ProxyMain::IsMainThread() const { 465 bool ProxyMain::IsMainThread() const {
470 return task_runner_provider_->IsMainThread(); 466 return task_runner_provider_->IsMainThread();
471 } 467 }
472 468
473 } // namespace cc 469 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698