| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_TREES_CHANNEL_IMPL_H_ | 5 #ifndef CC_TREES_CHANNEL_IMPL_H_ |
| 6 #define CC_TREES_CHANNEL_IMPL_H_ | 6 #define CC_TREES_CHANNEL_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/animation/animation_events.h" |
| 8 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/debug/frame_timing_tracker.h" |
| 11 #include "cc/output/renderer_capabilities.h" |
| 12 #include "cc/trees/proxy_common.h" |
| 9 | 13 |
| 10 namespace cc { | 14 namespace cc { |
| 11 | 15 |
| 12 // Channel used to send commands to and receive commands from ProxyMain. | 16 // Channel used to send commands to and receive commands from ProxyMain. |
| 13 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the | 17 // The ChannelImpl implementation creates and owns ProxyImpl on receiving the |
| 14 // InitializeImpl call from ChannelMain. | 18 // InitializeImpl call from ChannelMain. |
| 15 // See channel_main.h | 19 // See channel_main.h |
| 16 class CC_EXPORT ChannelImpl { | 20 class CC_EXPORT ChannelImpl { |
| 17 public: | 21 public: |
| 18 // Interface for commands sent to ProxyMain | 22 // Interface for commands sent to ProxyMain |
| 19 virtual void DidCompleteSwapBuffers() = 0; | 23 virtual void DidCompleteSwapBuffers() = 0; |
| 24 virtual void SetRendererCapabilitiesMainCopy( |
| 25 const RendererCapabilities& capabilities) = 0; |
| 26 virtual void BeginMainFrameNotExpectedSoon() = 0; |
| 27 virtual void DidCommitAndDrawFrame() = 0; |
| 28 virtual void SetAnimationEvents(scoped_ptr<AnimationEventsVector> queue) = 0; |
| 29 virtual void DidLoseOutputSurface() = 0; |
| 30 virtual void RequestNewOutputSurface() = 0; |
| 31 virtual void DidInitializeOutputSurface( |
| 32 bool success, |
| 33 const RendererCapabilities& capabilities) = 0; |
| 34 virtual void DidCompletePageScaleAnimation() = 0; |
| 35 virtual void PostFrameTimingEventsOnMain( |
| 36 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 37 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0; |
| 38 virtual void BeginMainFrame( |
| 39 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) = 0; |
| 20 | 40 |
| 21 protected: | 41 protected: |
| 22 virtual ~ChannelImpl() {} | 42 virtual ~ChannelImpl() {} |
| 23 }; | 43 }; |
| 24 | 44 |
| 25 } // namespace cc | 45 } // namespace cc |
| 26 | 46 |
| 27 #endif // CC_TREES_CHANNEL_IMPL_H_ | 47 #endif // CC_TREES_CHANNEL_IMPL_H_ |
| OLD | NEW |