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

Unified Diff: gpu/ipc/service/gpu_channel_manager.h

Issue 1747283003: Remove redundant codepath for webgl api blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_manager.h
diff --git a/gpu/ipc/service/gpu_channel_manager.h b/gpu/ipc/service/gpu_channel_manager.h
index 288e3b982ed7c0554d8ff0585deb9c083cbbe69e..9b39cda81be774e5079d9294317d4ab84e1933e9 100644
--- a/gpu/ipc/service/gpu_channel_manager.h
+++ b/gpu/ipc/service/gpu_channel_manager.h
@@ -107,6 +107,7 @@ class GPU_EXPORT GpuChannelManager {
void RemoveChannel(int client_id);
void LoseAllContexts();
+ void MaybeExitOnContextLost();
#if defined(OS_MACOSX)
void AddBufferPresentedCallback(int32_t routing_id,
@@ -146,6 +147,10 @@ class GPU_EXPORT GpuChannelManager {
void DidAccessGpu();
#endif
+ bool is_exiting_for_lost_context() {
+ return exiting_for_lost_context_;
+ }
+
protected:
virtual scoped_ptr<GpuChannel> CreateGpuChannel(
int client_id,
@@ -215,6 +220,9 @@ class GPU_EXPORT GpuChannelManager {
base::TimeTicks begin_wake_up_time_;
#endif
+ // Set during intentional GPU process shutdown.
+ bool exiting_for_lost_context_;
+
// Member variables should appear before the WeakPtrFactory, to ensure
// that any WeakPtrs to Controller are invalidated before its members
// variable's destructors are executed, rendering them invalid.
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698