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

Unified Diff: mojo/public/gles2/gles2_private.cc

Issue 428413002: Make async waiter explicit MojoGLES2CreateContext param (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/public/gles2/gles2_private.cc
diff --git a/mojo/public/gles2/gles2_private.cc b/mojo/public/gles2/gles2_private.cc
index c82e9deede9fef3236acb3c0794b93673a063964..de8dd344a1aa7e4d87ab944e9ea5142b22c34f8b 100644
--- a/mojo/public/gles2/gles2_private.cc
+++ b/mojo/public/gles2/gles2_private.cc
@@ -15,23 +15,15 @@ static mojo::GLES2Interface* g_gles2_interface = NULL;
extern "C" {
-void MojoGLES2Initialize(const MojoAsyncWaiter* async_waiter) {
- assert(g_gles2_support);
- return g_gles2_support->Initialize(async_waiter);
-}
-
-void MojoGLES2Terminate() {
- assert(g_gles2_support);
- return g_gles2_support->Terminate();
-}
-
MojoGLES2Context MojoGLES2CreateContext(
MojoHandle handle,
MojoGLES2ContextLost lost_callback,
- void* closure) {
+ void* closure,
+ const MojoAsyncWaiter* async_waiter) {
return g_gles2_support->CreateContext(mojo::MessagePipeHandle(handle),
lost_callback,
- closure);
+ closure,
+ async_waiter);
}
void MojoGLES2DestroyContext(MojoGLES2Context context) {

Powered by Google App Engine
This is Rietveld 408576698