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

Side by Side Diff: mojo/public/c/gles2/gles2.h

Issue 2007813003: Remove Mojo GLES2 API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_PUBLIC_C_GLES2_GLES2_H_
6 #define MOJO_PUBLIC_C_GLES2_GLES2_H_
7
8 // Note: This header should be compilable as C.
9
10 #include <GLES2/gl2.h>
11 #include <stdint.h>
12
13 #include "mojo/public/c/gles2/gles2_export.h"
14 #include "mojo/public/c/gles2/gles2_types.h"
15 #include "mojo/public/c/system/types.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 MOJO_GLES2_EXPORT MojoGLES2Context
22 MojoGLES2CreateContext(MojoHandle handle,
23 const int32_t* attrib_list,
24 MojoGLES2ContextLost lost_callback,
25 void* closure);
26 MOJO_GLES2_EXPORT void MojoGLES2DestroyContext(MojoGLES2Context context);
27 MOJO_GLES2_EXPORT void MojoGLES2MakeCurrent(MojoGLES2Context context);
28 MOJO_GLES2_EXPORT void MojoGLES2SwapBuffers(void);
29
30 // TODO(piman): We shouldn't have to leak this interface, especially in a
31 // type-unsafe way.
32 MOJO_GLES2_EXPORT void* MojoGLES2GetGLES2Interface(MojoGLES2Context context);
33
34 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
35 MOJO_GLES2_EXPORT ReturnType GL_APIENTRY gl##Function PARAMETERS;
36 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
37 #undef VISIT_GL_CALL
38
39 #ifdef __cplusplus
40 } // extern "C"
41 #endif
42
43 #endif // MOJO_PUBLIC_C_GLES2_GLES2_H_
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/chromium_extension.h ('k') | mojo/public/c/gles2/gles2_call_visitor_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698