| 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_
|
|
|