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

Unified Diff: mojo/gles2/control_thunks_impl.cc

Issue 1354353002: Add GetProcAddress to OpenGL control interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 months 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: mojo/gles2/control_thunks_impl.cc
diff --git a/mojo/gles2/control_thunks_impl.cc b/mojo/gles2/control_thunks_impl.cc
index 81cad387fbf4f51cd64553fea3d6262de09e9de0..071024ce7bff2a1e08b93197741ced821cde51f1 100644
--- a/mojo/gles2/control_thunks_impl.cc
+++ b/mojo/gles2/control_thunks_impl.cc
@@ -4,6 +4,7 @@
#include "mojo/gles2/control_thunks_impl.h"
+#include "gpu/command_buffer/client/gles2_lib.h"
#include "mojo/gles2/gles2_context.h"
#include "mojo/public/cpp/system/message_pipe.h"
@@ -52,6 +53,10 @@ void ControlThunksImpl::SwapBuffers() {
current_context_tls_.Get()->interface()->SwapBuffers();
}
+MGLFunctionPointerType ControlThunksImpl::GetProcAddress(const char* name) {
+ return gles2::GetGLFunctionPointer(name);
jamesr 2015/09/21 19:38:50 this will return things that the underlying librar
Petr Hosek 2015/09/22 20:06:54 Done.
+}
+
void* ControlThunksImpl::GetGLES2Interface(MGLContext context) {
GLES2Context* client = reinterpret_cast<GLES2Context*>(context);
DCHECK(client);

Powered by Google App Engine
This is Rietveld 408576698