Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 2270573002: cc: Get rid of LayerTreeHost::output_surface_lost_ state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-caps
Patch Set: lth-outputsurface-lost: android-build-and-earlyout-sooner Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698