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

Unified Diff: webkit/common/gpu/context_provider_in_process.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: webkit/common/gpu/context_provider_in_process.cc
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index dbb4ad8aa82c61787f531aab6add00c33a3680c2..fef2450b656c7a7a4a779f27b55a76c7ea7905a4 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -152,6 +152,14 @@ blink::WebGraphicsContext3D* ContextProviderInProcess::Context3d() {
return context3d_.get();
}
+::gpu::gles2::GLES2Interface* ContextProviderInProcess::ContextGL() {
+ DCHECK(context3d_);
+ DCHECK(lost_context_callback_proxy_); // Is bound to thread.
+ DCHECK(context_thread_checker_.CalledOnValidThread());
+
+ return context3d_->GetGLInterface();
+}
+
::gpu::ContextSupport* ContextProviderInProcess::ContextSupport() {
DCHECK(context3d_);
DCHECK(lost_context_callback_proxy_); // Is bound to thread.

Powered by Google App Engine
This is Rietveld 408576698