| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 TaskRunnerProvider* task_runner_provider); | 81 TaskRunnerProvider* task_runner_provider); |
| 82 | 82 |
| 83 ~ThreadedChannel() override; | 83 ~ThreadedChannel() override; |
| 84 | 84 |
| 85 // ChannelMain Implementation | 85 // ChannelMain Implementation |
| 86 void SetThrottleFrameProductionOnImpl(bool throttle) override; | 86 void SetThrottleFrameProductionOnImpl(bool throttle) override; |
| 87 void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 87 void UpdateTopControlsStateOnImpl(TopControlsState constraints, |
| 88 TopControlsState current, | 88 TopControlsState current, |
| 89 bool animate) override; | 89 bool animate) override; |
| 90 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; | 90 void InitializeOutputSurfaceOnImpl(OutputSurface* output_surface) override; |
| 91 void InitializeMutatorOnImpl(LayerTreeMutator* mutator) override; |
| 91 void MainThreadHasStoppedFlingingOnImpl() override; | 92 void MainThreadHasStoppedFlingingOnImpl() override; |
| 92 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; | 93 void SetInputThrottledUntilCommitOnImpl(bool is_throttled) override; |
| 93 void SetDeferCommitsOnImpl(bool defer_commits) override; | 94 void SetDeferCommitsOnImpl(bool defer_commits) override; |
| 94 void SetNeedsCommitOnImpl() override; | 95 void SetNeedsCommitOnImpl() override; |
| 95 void BeginMainFrameAbortedOnImpl( | 96 void BeginMainFrameAbortedOnImpl( |
| 96 CommitEarlyOutReason reason, | 97 CommitEarlyOutReason reason, |
| 97 base::TimeTicks main_thread_start_time) override; | 98 base::TimeTicks main_thread_start_time) override; |
| 98 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; | 99 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect) override; |
| 99 void SetVisibleOnImpl(bool visible) override; | 100 void SetVisibleOnImpl(bool visible) override; |
| 100 | 101 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Used on the main thread to safely queue calls to ProxyImpl to be run on the | 212 // Used on the main thread to safely queue calls to ProxyImpl to be run on the |
| 212 // impl thread. | 213 // impl thread. |
| 213 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 214 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 216 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace cc | 219 } // namespace cc |
| 219 | 220 |
| 220 #endif // CC_TREES_THREADED_CHANNEL_H_ | 221 #endif // CC_TREES_THREADED_CHANNEL_H_ |
| OLD | NEW |