Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Side by Side Diff: mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_SYNC_POINT_THUNKS_H_
12 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SYNC_POINT_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 CHROMIUM_sync_point extension.
20 #pragma pack(push, 8)
21 struct MojoGLES2ImplCHROMIUMSyncPointThunks {
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_sync_point_aut ogen.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_sync_point.
34 inline MojoGLES2ImplCHROMIUMSyncPointThunks
35 MojoMakeGLES2ImplCHROMIUMSyncPointThunks() {
36 MojoGLES2ImplCHROMIUMSyncPointThunks gles2_impl_chromium_sync_point_thunks = {
37 sizeof(MojoGLES2ImplCHROMIUMSyncPointThunks),
38 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function,
39 #include "mojo/public/platform/native/gles2/call_visitor_chromium_sync_point_aut ogen.h"
40 #undef VISIT_GL_CALL
41 };
42
43 return gles2_impl_chromium_sync_point_thunks;
44 }
45 #endif // __cplusplus
46
47 // Use this type for the function found by dynamically discovering it in
48 // a DSO linked with mojo_system.
49 // The contents of |gles2_impl_chromium_sync_point_thunks| are copied.
50 typedef size_t (*MojoSetGLES2ImplCHROMIUMSyncPointThunksFn)(
51 const struct MojoGLES2ImplCHROMIUMSyncPointThunks* thunks);
52
53 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SYNC_POINT_THUNKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698