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

Unified Diff: cc/trees/layer_tree_host_common.h

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: test compile 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
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46eb212fc3868d2c19a281b3a4a0e76dc450bbdf..a11fed78d62f2dc4a8e398db46e8548ea56c2666 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -173,6 +173,21 @@ 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 {
+ struct ScrollUpdate {
+ int layer_id = Layer::LayerIdLabels::INVALID_ID;
+ gfx::Vector2dF scroll_delta;
+ };
+
+ ReflectedMainFrameState();
+ ~ReflectedMainFrameState();
+
+ std::vector<ScrollUpdate> scrolls;
+ float page_scale_delta;
+};
+
struct CC_EXPORT ScrollAndScaleSet {
ScrollAndScaleSet();
~ScrollAndScaleSet();
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698