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

Unified Diff: mojo/public/platform/native/mgl_thunks.c

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « mojo/public/platform/native/mgl_thunks.h ('k') | mojo/public/platform/native/platform_handle_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/mgl_thunks.c
diff --git a/mojo/public/platform/native/mgl_thunks.c b/mojo/public/platform/native/mgl_thunks.c
deleted file mode 100644
index 9b74f0c210ff8a73b9b762e4f8b395f52c3a034d..0000000000000000000000000000000000000000
--- a/mojo/public/platform/native/mgl_thunks.c
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/public/platform/native/mgl_thunks.h"
-
-#include <assert.h>
-
-#include "mojo/public/platform/native/thunk_export.h"
-
-static struct MGLThunks g_thunks = {0};
-
-MGLContext MGLCreateContext(MGLOpenGLAPIVersion version,
- MojoHandle command_buffer_handle,
- MGLContext share_group,
- MGLContextLostCallback lost_callback,
- void* lost_callback_closure,
- const struct MojoAsyncWaiter* async_waiter) {
- assert(g_thunks.MGLCreateContext);
- return g_thunks.MGLCreateContext(
- version, command_buffer_handle, share_group, lost_callback,
- lost_callback_closure, async_waiter);
-}
-
-void MGLDestroyContext(MGLContext context) {
- assert(g_thunks.MGLDestroyContext);
- g_thunks.MGLDestroyContext(context);
-}
-
-void MGLMakeCurrent(MGLContext context) {
- assert(g_thunks.MGLMakeCurrent);
- g_thunks.MGLMakeCurrent(context);
-}
-
-MGLContext MGLGetCurrentContext(void) {
- assert(g_thunks.MGLGetCurrentContext);
- return g_thunks.MGLGetCurrentContext();
-}
-
-THUNK_EXPORT size_t MojoSetMGLThunks(
- const struct MGLThunks* mgl_thunks) {
- if (mgl_thunks->size >= sizeof(g_thunks))
- g_thunks = *mgl_thunks;
- return sizeof(g_thunks);
-}
-
-MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* name) {
- assert(g_thunks.MGLGetProcAddress);
- return g_thunks.MGLGetProcAddress(name);
-}
« no previous file with comments | « mojo/public/platform/native/mgl_thunks.h ('k') | mojo/public/platform/native/platform_handle_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698