OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |