OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // This file is auto-generated from | |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | |
7 // It's formatted by clang-format using chromium coding style: | |
8 // clang-format -i -style=chromium filename | |
9 // DO NOT EDIT! | |
10 | |
11 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_MULTISAMPLED_RENDER_TO_TEXTUR
E_THUNKS_H_ | |
12 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_MULTISAMPLED_RENDER_TO_TEXTUR
E_THUNKS_H_ | |
13 | |
14 #include <stddef.h> | |
15 | |
16 #define GL_GLEXT_PROTOTYPES | |
17 #include <GLES2/gl2extmojo.h> | |
18 | |
19 // Specifies the frozen API for the EXT_multisampled_render_to_texture | |
20 // extension. | |
21 #pragma pack(push, 8) | |
22 struct MojoGLES2ImplEXTMultisampledRenderToTextureThunks { | |
23 size_t size; // Should be set to sizeof(*this). | |
24 | |
25 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | |
26 ReturnType(GL_APIENTRY* Function) PARAMETERS; | |
27 #include "mojo/public/platform/native/gles2/call_visitor_ext_multisampled_render
_to_texture_autogen.h" | |
28 #undef VISIT_GL_CALL | |
29 }; | |
30 #pragma pack(pop) | |
31 | |
32 #ifdef __cplusplus | |
33 // Intended to be called from the embedder to get the embedder's implementation | |
34 // of ext_multisampled_render_to_texture. | |
35 inline MojoGLES2ImplEXTMultisampledRenderToTextureThunks | |
36 MojoMakeGLES2ImplEXTMultisampledRenderToTextureThunks() { | |
37 MojoGLES2ImplEXTMultisampledRenderToTextureThunks | |
38 gles2_impl_ext_multisampled_render_to_texture_thunks = { | |
39 sizeof(MojoGLES2ImplEXTMultisampledRenderToTextureThunks), | |
40 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function, | |
41 #include "mojo/public/platform/native/gles2/call_visitor_ext_multisampled_render
_to_texture_autogen.h" | |
42 #undef VISIT_GL_CALL | |
43 }; | |
44 | |
45 return gles2_impl_ext_multisampled_render_to_texture_thunks; | |
46 } | |
47 #endif // __cplusplus | |
48 | |
49 // Use this type for the function found by dynamically discovering it in | |
50 // a DSO linked with mojo_system. | |
51 // The contents of |gles2_impl_ext_multisampled_render_to_texture_thunks| are | |
52 // copied. | |
53 typedef size_t (*MojoSetGLES2ImplEXTMultisampledRenderToTextureThunksFn)( | |
54 const struct MojoGLES2ImplEXTMultisampledRenderToTextureThunks* thunks); | |
55 | |
56 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_MULTISAMPLED_RENDER_TO_TEX
TURE_THUNKS_H_ | |
OLD | NEW |