| 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_PROXY_MAIN_H_ | 5 #ifndef CC_TREES_PROXY_MAIN_H_ |
| 6 #define CC_TREES_PROXY_MAIN_H_ | 6 #define CC_TREES_PROXY_MAIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "cc/input/browser_controls_state.h" | 10 #include "cc/input/browser_controls_state.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 bool defer_commits_; | 123 bool defer_commits_; |
| 124 | 124 |
| 125 // ProxyImpl is created and destroyed on the impl thread, and should only be | 125 // ProxyImpl is created and destroyed on the impl thread, and should only be |
| 126 // accessed on the impl thread. | 126 // accessed on the impl thread. |
| 127 // It is safe to use base::Unretained to post tasks to ProxyImpl on the impl | 127 // It is safe to use base::Unretained to post tasks to ProxyImpl on the impl |
| 128 // thread, since we control its lifetime. Any tasks posted to it are bound to | 128 // thread, since we control its lifetime. Any tasks posted to it are bound to |
| 129 // run before we destroy it on the impl thread. | 129 // run before we destroy it on the impl thread. |
| 130 std::unique_ptr<ProxyImpl> proxy_impl_; | 130 std::unique_ptr<ProxyImpl> proxy_impl_; |
| 131 | 131 |
| 132 // WeakPtrs generated by this factory will be invalidated when |
| 133 // CompositorFrameSink is released. |
| 134 base::WeakPtrFactory<ProxyMain> frame_sink_bound_weak_factory_; |
| 135 |
| 132 base::WeakPtrFactory<ProxyMain> weak_factory_; | 136 base::WeakPtrFactory<ProxyMain> weak_factory_; |
| 133 | 137 |
| 134 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 138 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
| 135 }; | 139 }; |
| 136 | 140 |
| 137 } // namespace cc | 141 } // namespace cc |
| 138 | 142 |
| 139 #endif // CC_TREES_PROXY_MAIN_H_ | 143 #endif // CC_TREES_PROXY_MAIN_H_ |
| OLD | NEW |