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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Show a black frame during fullscreen transitions to hide jank Created 3 years, 7 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_impl.h" 5 #include "cc/trees/proxy_impl.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scheduler_->BeginMainFrameAborted(reason); 189 scheduler_->BeginMainFrameAborted(reason);
190 } 190 }
191 191
192 void ProxyImpl::SetVisibleOnImpl(bool visible) { 192 void ProxyImpl::SetVisibleOnImpl(bool visible) {
193 TRACE_EVENT1("cc", "ProxyImpl::SetVisibleOnImplThread", "visible", visible); 193 TRACE_EVENT1("cc", "ProxyImpl::SetVisibleOnImplThread", "visible", visible);
194 DCHECK(IsImplThread()); 194 DCHECK(IsImplThread());
195 layer_tree_host_impl_->SetVisible(visible); 195 layer_tree_host_impl_->SetVisible(visible);
196 scheduler_->SetVisible(visible); 196 scheduler_->SetVisible(visible);
197 } 197 }
198 198
199 void ProxyImpl::SetIsFullscreenOnImpl(bool is_fullscreen) {
200 TRACE_EVENT1("cc", "ProxyImpl::SetIsFullscreenOnImplThread", "is_fullscreen",
201 is_fullscreen);
202 DCHECK(IsImplThread());
203 layer_tree_host_impl_->SetIsFullscreen(is_fullscreen);
204 }
205
199 void ProxyImpl::ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion) { 206 void ProxyImpl::ReleaseCompositorFrameSinkOnImpl(CompletionEvent* completion) {
200 DCHECK(IsImplThread()); 207 DCHECK(IsImplThread());
201 208
202 // Unlike DidLoseCompositorFrameSinkOnImplThread, we don't need to call 209 // Unlike DidLoseCompositorFrameSinkOnImplThread, we don't need to call
203 // LayerTreeHost::DidLoseCompositorFrameSink since it already knows. 210 // LayerTreeHost::DidLoseCompositorFrameSink since it already knows.
204 scheduler_->DidLoseCompositorFrameSink(); 211 scheduler_->DidLoseCompositorFrameSink();
205 layer_tree_host_impl_->ReleaseCompositorFrameSink(); 212 layer_tree_host_impl_->ReleaseCompositorFrameSink();
206 completion->Signal(); 213 completion->Signal();
207 } 214 }
208 215
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 701 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
695 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 702 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
696 return main_thread_blocked_commit_vars_unsafe_; 703 return main_thread_blocked_commit_vars_unsafe_;
697 } 704 }
698 705
699 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { 706 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() {
700 return task_runner_provider_->MainThreadTaskRunner(); 707 return task_runner_provider_->MainThreadTaskRunner();
701 } 708 }
702 709
703 } // namespace cc 710 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698