| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |