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

Unified Diff: cc/trees/layer_tree_host.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Evict frame instead of showing a black frame 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 51622245b1ef7feacc27912658df618094697975..815a56a40d64aba477c76f2593f84c49992db06d 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -308,6 +308,9 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
return has_transparent_background_;
}
+ void set_is_fullscreen(bool is_fullscreen) { is_fullscreen_ = is_fullscreen; }
+ bool is_fullscreen() const { return is_fullscreen_; }
+
void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
bool use_anchor,
float scale,
@@ -596,6 +599,8 @@ class CC_EXPORT LayerTreeHost : public NON_EXPORTED_BASE(SurfaceReferenceOwner),
SkColor background_color_ = SK_ColorWHITE;
bool has_transparent_background_ = false;
+ bool is_fullscreen_ = false;
+
LayerSelection selection_;
gfx::Size device_viewport_size_;

Powered by Google App Engine
This is Rietveld 408576698