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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Assume true/false when updating fullscreen state Created 3 years, 6 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: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
index 4de80857dfe2c5b01b3c8c3b19c9c5417292af97..bd202a58e3a90ed724ae3a1460a07dae29e16255 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
@@ -908,6 +908,14 @@ public class Tab
return Color.WHITE;
}
+ /**
+ * @return Whether or not the tab can show the static layer.
+ */
+ public boolean canUseStaticLayer() {
aelias_OOO_until_Jul13 2017/06/16 22:46:40 This whole canUseStaticLayer thing seems to be unu
steimel 2017/06/16 23:24:12 It's actually used to plumb that bool out to Conte
aelias_OOO_until_Jul13 2017/06/17 01:18:34 OK, I guess live_layer_draws is false because it w
steimel 2017/06/20 21:28:35 Done and will be included in next patch
+ if (getWebContents() != null) return getWebContents().canShowThumbnailPlaceholder();
+ return true;
+ }
+
/**
* @return The current theme color based on the value passed from the web contents and the
* security state.

Powered by Google App Engine
This is Rietveld 408576698