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

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

Issue 54463007: Expose GLES2Interface to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 2128970ab9de64ba9e05e69b39ea9855b48ca269..ceb02d0c6965654f2264a8d8acebe53932396d01 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -139,6 +139,14 @@ ContextProviderCommandBuffer::Context3d() {
return context3d_.get();
}
+gpu::gles2::GLES2Interface* ContextProviderCommandBuffer::ContextGL() {
+ DCHECK(context3d_);
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread.
+ DCHECK(context_thread_checker_.CalledOnValidThread());
+
+ return context3d_->GetImplementation();
+}
+
gpu::ContextSupport* ContextProviderCommandBuffer::ContextSupport() {
return context3d_->GetContextSupport();
}

Powered by Google App Engine
This is Rietveld 408576698