| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #endif | 150 #endif |
| 151 bool inside_draw_; | 151 bool inside_draw_; |
| 152 bool defer_commits_; | 152 bool defer_commits_; |
| 153 bool animate_requested_; | 153 bool animate_requested_; |
| 154 bool commit_requested_; | 154 bool commit_requested_; |
| 155 bool inside_synchronous_composite_; | 155 bool inside_synchronous_composite_; |
| 156 | 156 |
| 157 // True if a request to the LayerTreeHostClient to create an output surface | 157 // True if a request to the LayerTreeHostClient to create an output surface |
| 158 // is still outstanding. | 158 // is still outstanding. |
| 159 bool output_surface_creation_requested_; | 159 bool output_surface_creation_requested_; |
| 160 // When output surface is lost, is set to true until a new output surface is |
| 161 // initialized. |
| 162 bool output_surface_lost_; |
| 160 | 163 |
| 161 // This is the callback for the scheduled RequestNewOutputSurface. | 164 // This is the callback for the scheduled RequestNewOutputSurface. |
| 162 base::CancelableClosure output_surface_creation_callback_; | 165 base::CancelableClosure output_surface_creation_callback_; |
| 163 | 166 |
| 164 base::WeakPtrFactory<SingleThreadProxy> weak_factory_; | 167 base::WeakPtrFactory<SingleThreadProxy> weak_factory_; |
| 165 | 168 |
| 166 DISALLOW_COPY_AND_ASSIGN(SingleThreadProxy); | 169 DISALLOW_COPY_AND_ASSIGN(SingleThreadProxy); |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 // For use in the single-threaded case. In debug builds, it pretends that the | 172 // For use in the single-threaded case. In debug builds, it pretends that the |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 private: | 240 private: |
| 238 DebugScopedSetImplThread impl_thread_; | 241 DebugScopedSetImplThread impl_thread_; |
| 239 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 242 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
| 240 | 243 |
| 241 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 244 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
| 242 }; | 245 }; |
| 243 | 246 |
| 244 } // namespace cc | 247 } // namespace cc |
| 245 | 248 |
| 246 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 249 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
| OLD | NEW |