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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 1317743002: cc: Implement shared worker contexts. (v1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: invalidate weak ptrs when detaching context from thread Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 91bd080f9ca2ad262034721bfc64f18933dc02b2..e7141f78011ef261190b168d6f52d318a9dfb359 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -291,6 +291,11 @@ bool WebGraphicsContext3DCommandBufferImpl::InitializeOnCurrentThread() {
return true;
}
+void WebGraphicsContext3DCommandBufferImpl::
+ InvalidateWeakPtrsOnCurrentThread() {
+ weak_ptr_factory_.InvalidateWeakPtrs();
+}
+
void WebGraphicsContext3DCommandBufferImpl::Destroy() {
share_group_->RemoveContext(this);

Powered by Google App Engine
This is Rietveld 408576698