| 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_CHROMIUM_BIND_UNIFORM_LOCATION_TH
UNKS_H_ | |
| 12 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_BIND_UNIFORM_LOCATION_TH
UNKS_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 CHROMIUM_bind_uniform_location extension. | |
| 20 #pragma pack(push, 8) | |
| 21 struct MojoGLES2ImplCHROMIUMBindUniformLocationThunks { | |
| 22 size_t size; // Should be set to sizeof(*this). | |
| 23 | |
| 24 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | |
| 25 ReturnType(GL_APIENTRY* Function) PARAMETERS; | |
| 26 #include "mojo/public/platform/native/gles2/call_visitor_chromium_bind_uniform_l
ocation_autogen.h" | |
| 27 #undef VISIT_GL_CALL | |
| 28 }; | |
| 29 #pragma pack(pop) | |
| 30 | |
| 31 #ifdef __cplusplus | |
| 32 // Intended to be called from the embedder to get the embedder's implementation | |
| 33 // of chromium_bind_uniform_location. | |
| 34 inline MojoGLES2ImplCHROMIUMBindUniformLocationThunks | |
| 35 MojoMakeGLES2ImplCHROMIUMBindUniformLocationThunks() { | |
| 36 MojoGLES2ImplCHROMIUMBindUniformLocationThunks | |
| 37 gles2_impl_chromium_bind_uniform_location_thunks = { | |
| 38 sizeof(MojoGLES2ImplCHROMIUMBindUniformLocationThunks), | |
| 39 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function, | |
| 40 #include "mojo/public/platform/native/gles2/call_visitor_chromium_bind_uniform_l
ocation_autogen.h" | |
| 41 #undef VISIT_GL_CALL | |
| 42 }; | |
| 43 | |
| 44 return gles2_impl_chromium_bind_uniform_location_thunks; | |
| 45 } | |
| 46 #endif // __cplusplus | |
| 47 | |
| 48 // Use this type for the function found by dynamically discovering it in | |
| 49 // a DSO linked with mojo_system. | |
| 50 // The contents of |gles2_impl_chromium_bind_uniform_location_thunks| are | |
| 51 // copied. | |
| 52 typedef size_t (*MojoSetGLES2ImplCHROMIUMBindUniformLocationThunksFn)( | |
| 53 const struct MojoGLES2ImplCHROMIUMBindUniformLocationThunks* thunks); | |
| 54 | |
| 55 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_BIND_UNIFORM_LOCATION
_THUNKS_H_ | |
| OLD | NEW |