| 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 ba9f0ebfbed6a6f75196c29a7bf89da933557773..172b1e8720d5681ef32583a7953dbe9435d724cc 100644
|
| --- a/content/common/gpu/client/context_provider_command_buffer.cc
|
| +++ b/content/common/gpu/client/context_provider_command_buffer.cc
|
| @@ -182,7 +182,9 @@ void ContextProviderCommandBuffer::DeleteCachedResources() {
|
| }
|
|
|
| void ContextProviderCommandBuffer::OnLostContext() {
|
| - DCHECK(context_thread_checker_.CalledOnValidThread());
|
| + // Note: no thread check here as this should not change the thread for which
|
| + // this context is currently bound. e.g. a worker context might be unbound
|
| + // and this should not result in it being bound to the current thread.
|
| {
|
| base::AutoLock lock(main_thread_lock_);
|
| if (destroyed_)
|
| @@ -197,8 +199,9 @@ void ContextProviderCommandBuffer::OnLostContext() {
|
|
|
| void ContextProviderCommandBuffer::OnMemoryAllocationChanged(
|
| const gpu::MemoryAllocation& allocation) {
|
| - DCHECK(context_thread_checker_.CalledOnValidThread());
|
| -
|
| + // Note: no thread check here as this should not change the thread for which
|
| + // this context is currently bound. e.g. a worker context might be unbound
|
| + // and this should not result in it being bound to the current thread.
|
| if (memory_policy_changed_callback_.is_null())
|
| return;
|
|
|
|
|