| 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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // sequence. Currently ThreadProxy implements both so we pass the pointer | 69 // sequence. Currently ThreadProxy implements both so we pass the pointer |
| 70 // and set ProxyImpl. | 70 // and set ProxyImpl. |
| 71 ThreadProxy* thread_proxy, | 71 ThreadProxy* thread_proxy, |
| 72 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 72 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 73 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 73 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 74 | 74 |
| 75 ~ThreadedChannel() override; | 75 ~ThreadedChannel() override; |
| 76 | 76 |
| 77 // ChannelMain Implementation | 77 // ChannelMain Implementation |
| 78 void SetThrottleFrameProductionOnImpl(bool throttle) override; | 78 void SetThrottleFrameProductionOnImpl(bool throttle) override; |
| 79 void SetLayerTreeHostClientReadyOnImpl() override; | |
| 80 | 79 |
| 81 // ChannelImpl Implementation | 80 // ChannelImpl Implementation |
| 82 void DidCompleteSwapBuffers() override; | 81 void DidCompleteSwapBuffers() override; |
| 83 | 82 |
| 84 protected: | 83 protected: |
| 85 ThreadedChannel(ThreadProxy* thread_proxy, | 84 ThreadedChannel(ThreadProxy* thread_proxy, |
| 86 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 85 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 87 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 86 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 88 | 87 |
| 89 private: | 88 private: |
| 90 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; | 89 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; |
| 91 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const; | 90 base::SingleThreadTaskRunner* ImplThreadTaskRunner() const; |
| 92 | 91 |
| 93 ProxyMain* proxy_main_; | 92 ProxyMain* proxy_main_; |
| 94 | 93 |
| 95 ProxyImpl* proxy_impl_; | 94 ProxyImpl* proxy_impl_; |
| 96 | 95 |
| 97 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 96 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 98 | 97 |
| 99 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; | 98 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner_; |
| 100 | 99 |
| 101 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); | 100 DISALLOW_COPY_AND_ASSIGN(ThreadedChannel); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 } // namespace cc | 103 } // namespace cc |
| 105 | 104 |
| 106 #endif // CC_TREES_THREADED_CHANNEL_H_ | 105 #endif // CC_TREES_THREADED_CHANNEL_H_ |
| OLD | NEW |