OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ | 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ |
6 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ | 6 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ |
7 | 7 |
| 8 #include <GLES2/gl2.h> |
8 #include <stddef.h> | 9 #include <stddef.h> |
9 | 10 |
10 #include "mojo/public/c/gpu/GLES2/gl2.h" | |
11 | |
12 // Like MojoGLES2ControlThunks, but specifies the frozen GLES2 API. Separated | 11 // Like MojoGLES2ControlThunks, but specifies the frozen GLES2 API. Separated |
13 // out as MojoGLES2ControlThunks may be modified and added to, but this | 12 // out as MojoGLES2ControlThunks may be modified and added to, but this |
14 // interface is frozen. | 13 // interface is frozen. |
15 #pragma pack(push, 8) | 14 #pragma pack(push, 8) |
16 struct MojoGLES2ImplThunks { | 15 struct MojoGLES2ImplThunks { |
17 size_t size; // Should be set to sizeof(MojoGLES2ImplThunks). | 16 size_t size; // Should be set to sizeof(MojoGLES2ImplThunks). |
18 | 17 |
19 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | 18 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ |
20 ReturnType(GL_APIENTRY *Function) PARAMETERS; | 19 ReturnType(GL_APIENTRY *Function) PARAMETERS; |
21 #include "mojo/public/platform/native/gles2/call_visitor_autogen.h" | 20 #include "mojo/public/platform/native/gles2/call_visitor_autogen.h" |
(...skipping 18 matching lines...) Expand all Loading... |
40 // a DSO linked with mojo_system. For example: | 39 // a DSO linked with mojo_system. For example: |
41 // MojoSetGLES2ImplThunksFn mojo_set_gles2_impl_thunks_fn = | 40 // MojoSetGLES2ImplThunksFn mojo_set_gles2_impl_thunks_fn = |
42 // reinterpret_cast<MojoSetGLES2ImplThunksFn>( | 41 // reinterpret_cast<MojoSetGLES2ImplThunksFn>( |
43 // app_library.GetFunctionPointer("MojoSetGLES2ImplThunks")); | 42 // app_library.GetFunctionPointer("MojoSetGLES2ImplThunks")); |
44 // The expected size of |gles2_impl_thunks| is returned. | 43 // The expected size of |gles2_impl_thunks| is returned. |
45 // The contents of |gles2_impl_thunks| are copied. | 44 // The contents of |gles2_impl_thunks| are copied. |
46 typedef size_t (*MojoSetGLES2ImplThunksFn)( | 45 typedef size_t (*MojoSetGLES2ImplThunksFn)( |
47 const struct MojoGLES2ImplThunks* gles2_impl_thunks); | 46 const struct MojoGLES2ImplThunks* gles2_impl_thunks); |
48 | 47 |
49 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ | 48 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_THUNKS_H_ |
OLD | NEW |