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

Unified Diff: cc/blimp/compositor_state_deserializer_client.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update 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
« no previous file with comments | « cc/blimp/compositor_state_deserializer.cc ('k') | cc/blimp/compositor_state_deserializer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blimp/compositor_state_deserializer_client.h
diff --git a/cc/blimp/compositor_state_deserializer_client.h b/cc/blimp/compositor_state_deserializer_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..57143626b494186d106300f97a41201b776e8613
--- /dev/null
+++ b/cc/blimp/compositor_state_deserializer_client.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_BLIMP_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
+#define CC_BLIMP_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
+
+#include "base/macros.h"
+#include "cc/base/cc_export.h"
+
+namespace gfx {
+class ScrollOffset;
+} // namespace gfx
+
+namespace cc {
+
+class CC_EXPORT CompositorStateDeserializerClient {
+ public:
+ virtual ~CompositorStateDeserializerClient() {}
+
+ // Returns true if the given scroll offset update received from the engine
+ // should be ignored.
+ virtual bool ShouldRetainClientScroll(
+ int engine_layer_id,
+ const gfx::ScrollOffset& new_offset) = 0;
+
+ // Returns true if the given page scale update from the engine should be
+ // ignored.
+ virtual bool ShouldRetainClientPageScale(float new_page_scale) = 0;
+};
+
+} // namespace cc
+
+#endif // CC_BLIMP_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
« no previous file with comments | « cc/blimp/compositor_state_deserializer.cc ('k') | cc/blimp/compositor_state_deserializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698