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

Unified Diff: cc/blimp/compositor_proto_state_sink.h

Issue 2362073002: cc/blimp: Add a LayerTreeHostRemote implementation. (Closed)
Patch Set: Created 4 years, 3 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/compositor_proto_state_sink.h
diff --git a/cc/blimp/compositor_proto_state_sink.h b/cc/blimp/compositor_proto_state_sink.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a9ef3663881f1582131a4d930565b473ebef225
--- /dev/null
+++ b/cc/blimp/compositor_proto_state_sink.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_PROTO_STATE_SINK_H_
+#define CC_BLIMP_COMPOSITOR_PROTO_STATE_SINK_H_
+
+#include "base/macros.h"
+#include "cc/base/cc_export.h"
+
+namespace cc {
+class CompositorProtoState;
+class CompositorStateSinkClient;
+
+class CC_EXPORT CompositorProtoStateSink {
+ public:
+ virtual ~CompositorProtoStateSink() {}
+
+ // Must be called exactly once before the CompositorProtoStateSink can be
+ // used. Once bound, the client is expected to outlive this class.
+ virtual void BindToClient(CompositorStateSinkClient* client) = 0;
+
+ // Notifies the sink that a main frame update is required.
+ virtual void ScheduleMainFrame() = 0;
+
+ // If a main frame update results in any mutations to the compositor state,
+ // the serialized compositor state is provided to the
+ // CompositorProtoStateSink.
+ virtual void ProcessCompositorStateUpdate(
+ std::unique_ptr<CompositorProtoState> compositor_proto_state) = 0;
+};
+
+} // namespace cc
+#endif // CC_BLIMP_COMPOSITOR_PROTO_STATE_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698