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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index a2a4fd1692dd510c9f49ab2ea91e2f3d9fdf7c0f..b44986af2d8609db384ac805863e466ea8c42043 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1137,6 +1137,12 @@ void RenderWidgetHostViewAndroid::DidCreateNewRendererCompositorFrameSink() {
void RenderWidgetHostViewAndroid::SubmitCompositorFrame(
const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
+ // In fullscreen, prevent background from flashing white.
Khushal 2017/04/12 01:56:55 Like we were discussing this will still miss a few
+ if (content_view_core_ &&
+ content_view_core_->GetWebContents()->IsFullscreen()) {
+ frame.metadata.root_background_color = SK_ColorBLACK;
+ }
+
last_scroll_offset_ = frame.metadata.root_scroll_offset;
DCHECK(delegated_frame_host_);
DCHECK(!frame.render_pass_list.empty());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698