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 d5e82a3f7df6c88bdca60ede223a110d5d7db289..573476ec471a647f91b4f62e7ee6a64b16a166c9 100644 |
--- a/content/common/gpu/client/context_provider_command_buffer.cc |
+++ b/content/common/gpu/client/context_provider_command_buffer.cc |
@@ -87,6 +87,14 @@ int ContextProviderCommandBuffer::GetGPUProcessID() { |
return context3d_->GetGPUProcessID(); |
} |
+blink::WebGraphicsContext3D* ContextProviderCommandBuffer::WebContext3D() { |
+ DCHECK(context3d_); |
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread. |
+ DCHECK(context_thread_checker_.CalledOnValidThread()); |
+ |
+ return context3d_.get(); |
+} |
+ |
bool ContextProviderCommandBuffer::BindToCurrentThread() { |
// This is called on the thread the context will be used. |
DCHECK(context_thread_checker_.CalledOnValidThread()); |
@@ -110,14 +118,6 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() { |
return true; |
} |
-WebGraphicsContext3DCommandBufferImpl* |
-ContextProviderCommandBuffer::Context3d() { |
- DCHECK(lost_context_callback_proxy_); // Is bound to thread. |
- DCHECK(context_thread_checker_.CalledOnValidThread()); |
- |
- return context3d_.get(); |
-} |
- |
gpu::gles2::GLES2Interface* ContextProviderCommandBuffer::ContextGL() { |
DCHECK(context3d_); |
DCHECK(lost_context_callback_proxy_); // Is bound to thread. |