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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SYNC_POINT_THUNKS_H_
6 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SYNC_POINT_THUNKS_H_
7
8 #include <stddef.h>
9
10 #include "mojo/public/c/gles2/chromium_sync_point.h"
11
12 // Specifies the frozen API for the GLES2 CHROMIUM_sync_point extension.
13 #pragma pack(push, 8)
14 struct MojoGLES2ImplChromiumSyncPointThunks {
15 size_t size; // Should be set to sizeof(*this).
16
17 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
18 ReturnType(*Function) PARAMETERS;
19 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h"
20 #undef VISIT_GL_CALL
21 };
22 #pragma pack(pop)
23
24 // Intended to be called from the embedder to get the embedder's implementation
25 // of GLES2.
26 inline MojoGLES2ImplChromiumSyncPointThunks
27 MojoMakeGLES2ImplChromiumSyncPointThunks() {
28 MojoGLES2ImplChromiumSyncPointThunks gles2_impl_chromium_sync_point_thunks = {
29 sizeof(MojoGLES2ImplChromiumSyncPointThunks),
30 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function,
31 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h"
32 #undef VISIT_GL_CALL
33 };
34
35 return gles2_impl_chromium_sync_point_thunks;
36 }
37
38 // Use this type for the function found by dynamically discovering it in
39 // a DSO linked with mojo_system.
40 // The contents of |gles2_impl_chromium_sync_point_thunks| are copied.
41 typedef size_t (*MojoSetGLES2ImplChromiumSyncPointThunksFn)(
42 const MojoGLES2ImplChromiumSyncPointThunks* thunks);
43
44 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SYNC_POINT_THUNKS_H_
OLDNEW
« no previous file with comments | « mojo/public/platform/native/BUILD.gn ('k') | mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698