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

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

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: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index 8a7c1cc5754d3f1f880aadd8363a3e89155608f6..8ef393b2df0262893c22ac57936f5594f66ebb59 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -340,6 +340,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void CreateOverscrollControllerIfPossible();
+ bool CheckForFullscreenTransitionJank(
+ const cc::CompositorFrameMetadata& metadata);
+ std::unique_ptr<cc::RenderPass> CreateBlackRenderPass();
+
// The model object.
RenderWidgetHostImpl* host_;
@@ -426,6 +430,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
+ bool was_fullscreen_ = false;
+ bool fullscreen_transitioning_ = false;
+ gfx::Size prev_physical_backing_size_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698