| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_TREES_CHANNEL_IMPL_H_ | |
| 6 #define CC_TREES_CHANNEL_IMPL_H_ | |
| 7 | |
| 8 #include "cc/base/cc_export.h" | |
| 9 #include "cc/trees/proxy_common.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 | |
| 13 class MutatorEvents; | |
| 14 | |
| 15 // Channel used to send commands to and receive commands from ProxyMain. | |
| 16 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the | |
| 17 // InitializeImpl call from ChannelMain. | |
| 18 // See channel_main.h | |
| 19 class CC_EXPORT ChannelImpl { | |
| 20 public: | |
| 21 // Interface for commands sent to ProxyMain | |
| 22 virtual void DidReceiveCompositorFrameAck() = 0; | |
| 23 virtual void BeginMainFrameNotExpectedSoon() = 0; | |
| 24 virtual void DidCommitAndDrawFrame() = 0; | |
| 25 virtual void SetAnimationEvents(std::unique_ptr<MutatorEvents> queue) = 0; | |
| 26 virtual void DidLoseCompositorFrameSink() = 0; | |
| 27 virtual void RequestNewCompositorFrameSink() = 0; | |
| 28 virtual void DidInitializeCompositorFrameSink(bool success) = 0; | |
| 29 virtual void DidCompletePageScaleAnimation() = 0; | |
| 30 virtual void BeginMainFrame( | |
| 31 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) = 0; | |
| 32 | |
| 33 protected: | |
| 34 virtual ~ChannelImpl() {} | |
| 35 }; | |
| 36 | |
| 37 } // namespace cc | |
| 38 | |
| 39 #endif // CC_TREES_CHANNEL_IMPL_H_ | |
| OLD | NEW |