| 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_THREADED_CHANNEL_H_ | 5 #ifndef CC_TREES_THREADED_CHANNEL_H_ |
| 6 #define CC_TREES_THREADED_CHANNEL_H_ | 6 #define CC_TREES_THREADED_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 class CC_EXPORT ThreadedChannel : public ChannelMain, public ChannelImpl { | 78 class CC_EXPORT ThreadedChannel : public ChannelMain, public ChannelImpl { |
| 79 public: | 79 public: |
| 80 static std::unique_ptr<ThreadedChannel> Create( | 80 static std::unique_ptr<ThreadedChannel> Create( |
| 81 ProxyMain* proxy_main, | 81 ProxyMain* proxy_main, |
| 82 TaskRunnerProvider* task_runner_provider); | 82 TaskRunnerProvider* task_runner_provider); |
| 83 | 83 |
| 84 ~ThreadedChannel() override; | 84 ~ThreadedChannel() override; |
| 85 | 85 |
| 86 // ChannelMain Implementation | 86 // ChannelMain Implementation |
| 87 void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 87 void UpdateTopControlsStateOnImpl(BrowserControlsState constraints, |
| 88 TopControlsState current, | 88 BrowserControlsState current, |
| 89 bool animate) override; | 89 bool animate) override; |
| 90 void InitializeCompositorFrameSinkOnImpl( | 90 void InitializeCompositorFrameSinkOnImpl( |
| 91 CompositorFrameSink* output_surface) override; | 91 CompositorFrameSink* output_surface) override; |
| 92 void InitializeMutatorOnImpl( | 92 void InitializeMutatorOnImpl( |
| 93 std::unique_ptr<LayerTreeMutator> mutator) override; | 93 std::unique_ptr<LayerTreeMutator> mutator) override; |
| 94 void MainThreadHasStoppedFlingingOnImpl() override; | 94 void MainThreadHasStoppedFlingingOnImpl() override; |
| 95 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; | 95 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; |
| 96 void SetDeferCommitsOnImpl(bool defer_commits) override; | 96 void SetDeferCommitsOnImpl(bool defer_commits) override; |
| 97 void SetNeedsCommitOnImpl() override; | 97 void SetNeedsCommitOnImpl() override; |
| 98 void BeginMainFrameAbortedOnImpl( | 98 void BeginMainFrameAbortedOnImpl( |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Used on the main thread to safely queue calls to ProxyImpl to be run on the | 199 // Used on the main thread to safely queue calls to ProxyImpl to be run on the |
| 200 // impl thread. | 200 // impl thread. |
| 201 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 201 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
| 202 | 202 |
| 203 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 203 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace cc | 206 } // namespace cc |
| 207 | 207 |
| 208 #endif // CC_TREES_THREADED_CHANNEL_H_ | 208 #endif // CC_TREES_THREADED_CHANNEL_H_ |
| OLD | NEW |