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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_ | 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_ | 6 #define MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "third_party/mojo/src/mojo/public/c/gpu/MGL/mgl_onscreen.h" | 10 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" |
11 | 11 |
12 // Structure used to bind the interface which manipulates MGL contexts to a | 12 // Structure used to bind the interface which manipulates MGL contexts to a |
13 // DSO to theose of the embedder. | 13 // DSO to theose of the embedder. |
14 // | 14 // |
15 // This is the ABI between the embedder and the DSO. It can only have new | 15 // 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. | 16 // functions added to the end. No other changes are supported. |
17 #pragma pack(push, 8) | 17 #pragma pack(push, 8) |
18 struct MGLOnscreenThunks { | 18 struct MGLOnscreenThunks { |
19 size_t size; // Should be set to sizeof(MojoMGLOnscreenThunks). | 19 size_t size; // Should be set to sizeof(MojoMGLOnscreenThunks). |
20 | 20 |
(...skipping 15 matching lines...) Expand all Loading... |
36 // Use this type for the function found by dynamically discovering it in | 36 // Use this type for the function found by dynamically discovering it in |
37 // a DSO linked with mojo_system. For example: | 37 // a DSO linked with mojo_system. For example: |
38 // MojoSetMGLOnscreenThunksFn mojo_set_gles2_thunks_fn = | 38 // MojoSetMGLOnscreenThunksFn mojo_set_gles2_thunks_fn = |
39 // reinterpret_cast<MojoSetMGLOnscreenThunksFn>( | 39 // reinterpret_cast<MojoSetMGLOnscreenThunksFn>( |
40 // app_library.GetFunctionPointer("MojoSetMGLOnscreenThunks")); | 40 // app_library.GetFunctionPointer("MojoSetMGLOnscreenThunks")); |
41 // The expected size of |mgl_thunks| is returned. | 41 // The expected size of |mgl_thunks| is returned. |
42 // The contents of |mgl_thunks| are copied. | 42 // The contents of |mgl_thunks| are copied. |
43 typedef size_t (*MojoSetMGLOnscreenThunksFn)( | 43 typedef size_t (*MojoSetMGLOnscreenThunksFn)( |
44 const struct MGLOnscreenThunks* mgl_thunks); | 44 const struct MGLOnscreenThunks* mgl_thunks); |
45 | 45 |
46 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_
H_ | 46 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_ |
OLD | NEW |