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

Unified Diff: cc/trees/proxy_main.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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/proxy_main.cc
diff --git a/cc/trees/proxy_main.cc b/cc/trees/proxy_main.cc
index 8632105c29340bdf5d62dcb2d8769fbb40595ddf..3426b9f83b7b1fa061b9d7badd8922139bf03c3d 100644
--- a/cc/trees/proxy_main.cc
+++ b/cc/trees/proxy_main.cc
@@ -308,6 +308,15 @@ void ProxyMain::SetVisible(bool visible) {
base::Unretained(proxy_impl_.get()), visible));
}
+void ProxyMain::SetIsFullscreen(bool is_fullscreen) {
+ TRACE_EVENT1("cc", "ProxyMain::SetIsFullscreen", "is_fullscreen",
+ is_fullscreen);
+ ImplThreadTaskRunner()->PostTask(
+ FROM_HERE,
+ base::BindOnce(&ProxyImpl::SetIsFullscreenOnImpl,
+ base::Unretained(proxy_impl_.get()), is_fullscreen));
+}
+
void ProxyMain::SetNeedsAnimate() {
DCHECK(IsMainThread());
if (SendCommitRequestToImplThreadIfNeeded(ANIMATE_PIPELINE_STAGE)) {

Powered by Google App Engine
This is Rietveld 408576698