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

Unified Diff: mojo/public/c/gpu/MGL/mgl.h

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo 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/c/gpu/KHR/khrplatform.h ('k') | mojo/public/c/gpu/MGL/mgl_echo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/gpu/MGL/mgl.h
diff --git a/mojo/public/c/gpu/MGL/mgl.h b/mojo/public/c/gpu/MGL/mgl.h
deleted file mode 100644
index da7d275d9e8b755fc80524f4a73742027d601dc7..0000000000000000000000000000000000000000
--- a/mojo/public/c/gpu/MGL/mgl.h
+++ /dev/null
@@ -1,69 +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.
-
-// Note: This header should be compilable as C.
-
-#ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_H_
-#define MOJO_PUBLIC_C_GPU_MGL_MGL_H_
-
-#include <mojo/system/handle.h>
-#include <stdint.h>
-
-#include "mojo/public/c/gpu/MGL/mgl_types.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef uint32_t MGLOpenGLAPIVersion;
-
-// OpenGL ES 2.0
-#define MGL_API_VERSION_GLES2 ((MGLOpenGLAPIVersion)1)
-// OpenGL ES 3.0
-#define MGL_API_VERSION_GLES3 ((MGLOpenGLAPIVersion)2)
-// OpenGL ES 3.1
-#define MGL_API_VERSION_GLES31 ((MGLOpenGLAPIVersion)3)
-
-#define MGL_NO_CONTEXT ((MGLContext)0)
-
-struct MojoAsyncWaiter;
-
-// Creates a context at the given API version or returns MGL_NO_CONTEXT.
-// |command_buffer_handle| must be a command buffer message pipe handle from
-// the Gpu service or another source. The callee takes ownership of this
-// handle.
-// |share_group| specifies the share group to create this context in.
-// If this is MGL_NO_CONTEXT a new share group will be created for this context.
-// |lost_callback|, if not null, will be invoked when the context is lost.
-// |async_waiter| must be a pointer to a MojoAsyncWaiter implementation that is
-// usable from any thread the returned MGLContext will be used from
-// for as long as the context exists.
-MGLContext MGLCreateContext(MGLOpenGLAPIVersion version,
- MojoHandle command_buffer_handle,
- MGLContext share_group,
- MGLContextLostCallback lost_callback,
- void* lost_callback_closure,
- const struct MojoAsyncWaiter* async_waiter);
-void MGLDestroyContext(MGLContext context);
-
-// Makes |context| the current MGLContext for the calling thread. Calling with
-// MGL_NO_CONTEXT clears the current context.
-void MGLMakeCurrent(MGLContext context);
-
-// Returns the currently bound context for the calling thread or MGL_NO_CONTEXT
-// if there is none.
-MGLContext MGLGetCurrentContext(void);
-
-// Returns GL function usable in any context that advertise the corresponding
-// extension in their GL_EXTENSIONS string, or null for functions that the
-// implementation does not support. The implementation only advertises GL
-// functions.
-// |name| is the name of the GL function.
-MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* name);
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // MOJO_PUBLIC_C_GPU_MGL_MGL_H_
« no previous file with comments | « mojo/public/c/gpu/KHR/khrplatform.h ('k') | mojo/public/c/gpu/MGL/mgl_echo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698