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

Unified Diff: cc/trees/layer_tree_host.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/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 7abf735a319f48b7bca8608574a9873852d33fce..6a6385704ba1c3b95a78c7bbe443e242f7f52518 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -549,6 +549,13 @@ bool LayerTreeHost::IsVisible() const {
return visible_;
}
+void LayerTreeHost::SetIsFullscreen(bool is_fullscreen) {
+ if (is_fullscreen_ == is_fullscreen)
+ return;
+ is_fullscreen_ = is_fullscreen;
+ proxy_->SetIsFullscreen(is_fullscreen);
+}
+
void LayerTreeHost::NotifyInputThrottledUntilCommit() {
proxy_->NotifyInputThrottledUntilCommit();
}
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | cc/trees/proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698