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

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

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