| Index: cc/trees/proxy_impl.cc
|
| diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
|
| index cf0dd57bb0b10839f4ab37f704fba30c04ee407e..1dbf386b75cdeee69c86ba408075633ef685f5aa 100644
|
| --- a/cc/trees/proxy_impl.cc
|
| +++ b/cc/trees/proxy_impl.cc
|
| @@ -36,16 +36,6 @@ unsigned int nextBeginFrameId = 0;
|
|
|
| } // namespace
|
|
|
| -std::unique_ptr<ProxyImpl> ProxyImpl::Create(
|
| - ChannelImpl* channel_impl,
|
| - LayerTreeHost* layer_tree_host,
|
| - TaskRunnerProvider* task_runner_provider,
|
| - std::unique_ptr<BeginFrameSource> external_begin_frame_source) {
|
| - return base::WrapUnique(
|
| - new ProxyImpl(channel_impl, layer_tree_host, task_runner_provider,
|
| - std::move(external_begin_frame_source)));
|
| -}
|
| -
|
| ProxyImpl::ProxyImpl(
|
| ChannelImpl* channel_impl,
|
| LayerTreeHost* layer_tree_host,
|
| @@ -72,6 +62,10 @@ ProxyImpl::ProxyImpl(
|
| DCHECK(IsImplThread());
|
| DCHECK(IsMainThreadBlocked());
|
|
|
| + // Double checking we set this correctly since double->int truncations are
|
| + // silent and have been done mistakenly: crbug.com/568120.
|
| + DCHECK(!smoothness_priority_expiration_notifier_.delay().is_zero());
|
| +
|
| layer_tree_host_impl_ = layer_tree_host->CreateLayerTreeHostImpl(this);
|
|
|
| SchedulerSettings scheduler_settings(
|
| @@ -256,16 +250,6 @@ void ProxyImpl::MainFrameWillHappenOnImplForTesting(
|
| completion->Signal();
|
| }
|
|
|
| -void ProxyImpl::BlockNotifyReadyToActivateForTesting(bool block) {
|
| - DCHECK(IsImplThread());
|
| - layer_tree_host_impl_->BlockNotifyReadyToActivateForTesting(block);
|
| -}
|
| -
|
| -CompletionEvent* ProxyImpl::ActivationCompletionEventForTesting() {
|
| - DCHECK(IsImplThread());
|
| - return activation_completion_event_;
|
| -}
|
| -
|
| void ProxyImpl::StartCommitOnImpl(CompletionEvent* completion,
|
| LayerTreeHost* layer_tree_host,
|
| base::TimeTicks main_thread_start_time,
|
| @@ -287,6 +271,8 @@ void ProxyImpl::StartCommitOnImpl(CompletionEvent* completion,
|
| // But, we can avoid a PostTask in here.
|
| scheduler_->NotifyBeginMainFrameStarted(main_thread_start_time);
|
|
|
| + layer_tree_host_impl_->BeginMainFrameCompleted();
|
| +
|
| commit_completion_event_ = completion;
|
| commit_completion_waits_for_activation_ = hold_commit_for_activation;
|
|
|
|
|