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