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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: Addressed comments Created 4 years, 2 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_common.h
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index a3b261baa5887dccd2a58fe552816454eac4d9f5..a7b43fb5d3214e82fd5802c492139ae37ba50d5e 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -154,6 +154,16 @@ class CC_EXPORT LayerTreeHostCommon {
};
};
+// A container for the state that was reported to the main thread during
+// BeginMainFrame, but could not be applied/resolved on the main thread.
+struct CC_EXPORT ReflectedMainFrameState {
+ ReflectedMainFrameState();
+ ~ReflectedMainFrameState();
+
+ std::vector<LayerTreeHostCommon::ScrollUpdateInfo> scrolls;
+ float page_scale_delta;
+};
+
struct CC_EXPORT ScrollAndScaleSet {
ScrollAndScaleSet();
~ScrollAndScaleSet();

Powered by Google App Engine
This is Rietveld 408576698