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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: fix rebase upload Created 4 years, 1 month 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_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index e6ea05ea39c0b1e6e8c07c45f982b830b76ecd5a..c197ae7cafd4e45f5e11c44affee0c83ed46d734 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -184,6 +184,10 @@ void LayerTreeHostCommon::ScrollUpdateInfo::FromProtobuf(
scroll_delta = ProtoToVector2d(proto.scroll_delta());
}
+ReflectedMainFrameState::ReflectedMainFrameState() : page_scale_delta(1.0f) {}
+
+ReflectedMainFrameState::~ReflectedMainFrameState() = default;
+
ScrollAndScaleSet::ScrollAndScaleSet()
: page_scale_delta(1.f), top_controls_delta(0.f) {
}

Powered by Google App Engine
This is Rietveld 408576698