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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1128233004: Fix GpuChannelHost destruction and races (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/common/gpu/client/gpu_channel_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 207724bdc327a6dbc427a7ab49d7ca2987196434..5d010b75827b1bf3735295d999c46d5b7f4014de 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -790,6 +790,7 @@ void RenderThreadImpl::Shutdown() {
// Context providers must be released prior to destroying the GPU channel.
gpu_va_context_provider_ = nullptr;
+ shared_main_thread_contexts_ = nullptr;
if (gpu_channel_.get())
gpu_channel_->DestroyChannel();
@@ -1605,6 +1606,7 @@ GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync(
return gpu_channel_.get();
// Recreate the channel if it has been lost.
+ gpu_channel_->DestroyChannel();
gpu_channel_ = NULL;
}
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698