OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ | 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ |
6 #define MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ | 6 #define MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ |
7 | 7 |
| 8 #include <MGL/mgl_signal_sync_point.h> |
8 #include <stddef.h> | 9 #include <stddef.h> |
9 | 10 |
10 #include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h" | |
11 | |
12 // Structure used to bind the MGL signal sync point interface DSO to those | 11 // Structure used to bind the MGL signal sync point interface DSO to those |
13 // of the embedder. | 12 // of the embedder. |
14 // | 13 // |
15 // This is the ABI between the embedder and the DSO. It can only have new | 14 // This is the ABI between the embedder and the DSO. It can only have new |
16 // functions added to the end. No other changes are supported. | 15 // functions added to the end. No other changes are supported. |
17 #pragma pack(push, 8) | 16 #pragma pack(push, 8) |
18 struct MGLSignalSyncPointThunks { | 17 struct MGLSignalSyncPointThunks { |
19 size_t size; // Should be set to sizeof(MGLSignalSyncPointThunks). | 18 size_t size; // Should be set to sizeof(MGLSignalSyncPointThunks). |
20 | 19 |
21 void (*MGLSignalSyncPoint)(uint32_t sync_point, | 20 void (*MGLSignalSyncPoint)(uint32_t sync_point, |
(...skipping 19 matching lines...) Expand all Loading... |
41 // a DSO linked with mojo_system. For example: | 40 // a DSO linked with mojo_system. For example: |
42 // MojoSetMGLSignalSyncPointThunksFn mojo_set_gles2_thunks_fn = | 41 // MojoSetMGLSignalSyncPointThunksFn mojo_set_gles2_thunks_fn = |
43 // reinterpret_cast<MojoSetMGLSignalSyncPointThunksFn>( | 42 // reinterpret_cast<MojoSetMGLSignalSyncPointThunksFn>( |
44 // app_library.GetFunctionPointer("MojoSetMGLSignalSyncPointThunks")); | 43 // app_library.GetFunctionPointer("MojoSetMGLSignalSyncPointThunks")); |
45 // The expected size of |mgl_thunks| is returned. | 44 // The expected size of |mgl_thunks| is returned. |
46 // The contents of |mgl_thunks| are copied. | 45 // The contents of |mgl_thunks| are copied. |
47 typedef size_t (*MojoSetMGLSignalSyncPointThunksFn)( | 46 typedef size_t (*MojoSetMGLSignalSyncPointThunksFn)( |
48 const struct MGLSignalSyncPointThunks* mgl_signal_sync_point_thunks); | 47 const struct MGLSignalSyncPointThunks* mgl_signal_sync_point_thunks); |
49 | 48 |
50 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ | 49 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_MGL_SIGNAL_SYNC_POINT_THUNKS_H_ |
OLD | NEW |