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

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

Issue 2353033003: Idle cleanup for worker context (Closed)
Patch Set: fix windows build 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 0a6770415584f897786603e69dc4788471fb0738..e717ac253b396ced39fdf64bb026aab00962333c 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -245,11 +245,13 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() {
ContextGL()->TraceBeginCHROMIUM("gpu_toplevel", unique_context_name.c_str());
// If support_locking_ is true, the context may be used from multiple
// threads, and any async callstacks will need to hold the same lock, so
- // give it to the command buffer.
+ // give it to the command buffer and cache controller.
// We don't hold a lock here since there's no need, so set the lock very last
// to prevent asserts that we're not holding it.
- if (support_locking_)
+ if (support_locking_) {
command_buffer_->SetLock(&context_lock_);
+ cache_controller_->SetLock(&context_lock_);
+ }
return true;
}
« cc/output/context_cache_controller_unittest.cc ('K') | « cc/output/context_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698