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

Unified Diff: cc/blimp/remote_compositor_bridge_client.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/blimp/remote_compositor_bridge_client.h
diff --git a/cc/blimp/remote_compositor_bridge_client.h b/cc/blimp/remote_compositor_bridge_client.h
index 1df4e0af2f52d39fc214e7afc3d0a7606cab437f..e109cbd922e20fe94e3fd6d4a7c26bcb19f937fb 100644
--- a/cc/blimp/remote_compositor_bridge_client.h
+++ b/cc/blimp/remote_compositor_bridge_client.h
@@ -19,6 +19,9 @@ class ScrollOffset;
} // namespace gfx
namespace cc {
+namespace proto {
+class ClientStateUpdate;
+} // namespace proto
class CompositorProtoState;
class CC_EXPORT RemoteCompositorBridgeClient {
@@ -33,13 +36,10 @@ class CC_EXPORT RemoteCompositorBridgeClient {
// is made.
virtual void BeginMainFrame() = 0;
- // Provides an update from the mutations made on the client. Returns true if
- // the update could be successfully applied to the engine state. This can
- // fail, for instance, if the layer present in the update was destroyed on the
- // engine.
- virtual bool ApplyScrollAndScaleUpdateFromClient(
- const ScrollOffsetMap& client_scroll_map,
- float client_page_scale) = 0;
+ // Applied state updates reported from the client onto the main thread state
+ // on the engine.
+ virtual void ApplyStateUpdateFromClient(
+ const proto::ClientStateUpdate& client_state_update) = 0;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698