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 #include "mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks
.h" | |
12 | |
13 #include <assert.h> | |
14 | |
15 #include "mojo/public/platform/native/thunk_export.h" | |
16 | |
17 static struct MojoGLES2ImplCHROMIUMTextureMailboxThunks | |
18 g_impl_chromium_texture_mailbox_thunks = {0}; | |
19 | |
20 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | |
21 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ | |
22 assert(g_impl_chromium_texture_mailbox_thunks.Function); \ | |
23 return g_impl_chromium_texture_mailbox_thunks.Function ARGUMENTS; \ | |
24 } | |
25 #include "mojo/public/platform/native/gles2/call_visitor_chromium_texture_mailbo
x_autogen.h" | |
26 #undef VISIT_GL_CALL | |
27 | |
28 THUNK_EXPORT size_t MojoSetGLES2ImplCHROMIUMTextureMailboxThunks( | |
29 const struct MojoGLES2ImplCHROMIUMTextureMailboxThunks* | |
30 gles2_impl_chromium_texture_mailbox_thunks) { | |
31 if (gles2_impl_chromium_texture_mailbox_thunks->size >= | |
32 sizeof(g_impl_chromium_texture_mailbox_thunks)) | |
33 g_impl_chromium_texture_mailbox_thunks = | |
34 *gles2_impl_chromium_texture_mailbox_thunks; | |
35 return sizeof(g_impl_chromium_texture_mailbox_thunks); | |
36 } | |
OLD | NEW |