| 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_MAIN_H_ | 5 #ifndef CC_TREES_CHANNEL_MAIN_H_ |
| 6 #define CC_TREES_CHANNEL_MAIN_H_ | 6 #define CC_TREES_CHANNEL_MAIN_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/base/completion_event.h" | 9 #include "cc/base/completion_event.h" |
| 10 #include "cc/input/top_controls_state.h" | 10 #include "cc/input/top_controls_state.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // LayerTreeHost<-->ProxyMain<-->ChannelMain | 23 // LayerTreeHost<-->ProxyMain<-->ChannelMain |
| 24 // | | 24 // | |
| 25 // | | 25 // | |
| 26 // ChannelImpl<-->ProxyImpl<-->LayerTreeHostImpl | 26 // ChannelImpl<-->ProxyImpl<-->LayerTreeHostImpl |
| 27 | 27 |
| 28 class CC_EXPORT ChannelMain { | 28 class CC_EXPORT ChannelMain { |
| 29 public: | 29 public: |
| 30 virtual ~ChannelMain() {} | 30 virtual ~ChannelMain() {} |
| 31 | 31 |
| 32 // Interface for commands sent to ProxyImpl | 32 // Interface for commands sent to ProxyImpl |
| 33 virtual void SetThrottleFrameProductionOnImpl(bool throttle) = 0; | |
| 34 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 33 virtual void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
| 35 TopControlsState current, | 34 TopControlsState current, |
| 36 bool animate) = 0; | 35 bool animate) = 0; |
| 37 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0; | 36 virtual void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) = 0; |
| 38 virtual void MainThreadHasStoppedFlingingOnImpl() = 0; | 37 virtual void MainThreadHasStoppedFlingingOnImpl() = 0; |
| 39 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0; | 38 virtual void SetInputThrottledUntilCommitOnImpl(bool is_throttled) = 0; |
| 40 virtual void SetDeferCommitsOnImpl(bool defer_commits) = 0; | 39 virtual void SetDeferCommitsOnImpl(bool defer_commits) = 0; |
| 41 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; | 40 virtual void FinishAllRenderingOnImpl(CompletionEvent* completion) = 0; |
| 42 virtual void SetVisibleOnImpl(bool visible) = 0; | 41 virtual void SetVisibleOnImpl(bool visible) = 0; |
| 43 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; | 42 virtual void ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) = 0; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 59 LayerTreeHost* layer_tree_host, | 58 LayerTreeHost* layer_tree_host, |
| 60 scoped_ptr<BeginFrameSource> external_begin_frame_source) = 0; | 59 scoped_ptr<BeginFrameSource> external_begin_frame_source) = 0; |
| 61 | 60 |
| 62 // Must be called before deleting the channel. | 61 // Must be called before deleting the channel. |
| 63 virtual void SynchronouslyCloseImpl() = 0; | 62 virtual void SynchronouslyCloseImpl() = 0; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace cc | 65 } // namespace cc |
| 67 | 66 |
| 68 #endif // CC_TREES_CHANNEL_MAIN_H_ | 67 #endif // CC_TREES_CHANNEL_MAIN_H_ |
| OLD | NEW |