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

Unified Diff: cc/trees/layer_tree_host.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: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 3919895a6828d8c904ec6b3b02882d122154aaf6..0dbcd0e168668bcae141edaf9957210bc5c7e7d7 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -137,6 +137,8 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
void SetVisible(bool visible);
bool IsVisible() const;
+ void SetIsFullscreen(bool is_fullscreen);
+
// Called in response to an CompositorFrameSink request made to the client
// using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will
// be informed of the CompositorFrameSink initialization status using
@@ -538,6 +540,7 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
LayerTreeDebugState debug_state_;
bool visible_ = false;
+ bool is_fullscreen_ = false;
bool has_gpu_rasterization_trigger_ = false;
bool content_is_suitable_for_gpu_rasterization_ = true;

Powered by Google App Engine
This is Rietveld 408576698