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 eb7096499b2d23d29552e8c61b652968f97e7267..2f00de1fe296877762620733ff3c02dcad436d66 100644 |
--- a/content/common/gpu/client/context_provider_command_buffer.cc |
+++ b/content/common/gpu/client/context_provider_command_buffer.cc |
@@ -143,6 +143,14 @@ class GrContext* ContextProviderCommandBuffer::GrContext() { |
return gr_context_->get(); |
} |
+void ContextProviderCommandBuffer::InvalidateGrContext(uint32_t state) { |
+ if (gr_context_) { |
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread. |
+ DCHECK(context_thread_checker_.CalledOnValidThread()); |
+ gr_context_->get()->resetContext(state); |
+ } |
+} |
+ |
void ContextProviderCommandBuffer::SetupLock() { |
DCHECK(context3d_); |
context3d_->GetCommandBufferProxy()->SetLock(&context_lock_); |