OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_GLES2_THUNKS_H_ | 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ | 6 #define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 10 #include "mojo/public/c/gles2/gles2.h" |
11 | 11 |
12 // Structure used to bind the interface which manipulates GLES2 surfaces to a | 12 // Structure used to bind the interface which manipulates GLES2 surfaces 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 MojoGLES2ControlThunks { | 18 struct MojoGLES2ControlThunks { |
19 size_t size; // Should be set to sizeof(MojoGLES2ControlThunks). | 19 size_t size; // Should be set to sizeof(MojoGLES2ControlThunks). |
20 | 20 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Use this type for the function found by dynamically discovering it in | 57 // Use this type for the function found by dynamically discovering it in |
58 // a DSO linked with mojo_system. For example: | 58 // a DSO linked with mojo_system. For example: |
59 // MojoSetGLES2ControlThunksFn mojo_set_gles2_control_thunks_fn = | 59 // MojoSetGLES2ControlThunksFn mojo_set_gles2_control_thunks_fn = |
60 // reinterpret_cast<MojoSetGLES2ControlThunksFn>( | 60 // reinterpret_cast<MojoSetGLES2ControlThunksFn>( |
61 // app_library.GetFunctionPointer("MojoSetGLES2ControlThunks")); | 61 // app_library.GetFunctionPointer("MojoSetGLES2ControlThunks")); |
62 // The expected size of |gles2_control_thunks| is returned. | 62 // The expected size of |gles2_control_thunks| is returned. |
63 // The contents of |gles2_control_thunks| are copied. | 63 // The contents of |gles2_control_thunks| are copied. |
64 typedef size_t (*MojoSetGLES2ControlThunksFn)( | 64 typedef size_t (*MojoSetGLES2ControlThunksFn)( |
65 const MojoGLES2ControlThunks* gles2_control_thunks); | 65 const MojoGLES2ControlThunks* gles2_control_thunks); |
66 | 66 |
67 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ | 67 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ |
OLD | NEW |