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

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

Issue 1725123002: Mojo bindings environment: remove usage in gles2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « mojo/public/c/gles2/gles2.h ('k') | mojo/public/platform/native/gles2_thunks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ 5 #ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_
6 #define 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 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "mojo/public/c/gles2/gles2.h" 11 #include "mojo/public/c/gles2/gles2.h"
12 12
13 // Structure used to bind the interface which manipulates GLES2 surfaces to a 13 // Structure used to bind the interface which manipulates GLES2 surfaces to a
14 // DSO to theose of the embedder. 14 // DSO to theose of the embedder.
15 // 15 //
16 // This is the ABI between the embedder and the DSO. It can only have new 16 // This is the ABI between the embedder and the DSO. It can only have new
17 // functions added to the end. No other changes are supported. 17 // functions added to the end. No other changes are supported.
18 #pragma pack(push, 8) 18 #pragma pack(push, 8)
19 struct MojoGLES2ControlThunks { 19 struct MojoGLES2ControlThunks {
20 size_t size; // Should be set to sizeof(MojoGLES2ControlThunks). 20 size_t size; // Should be set to sizeof(MojoGLES2ControlThunks).
21 21
22 MojoGLES2Context (*GLES2CreateContext)(MojoHandle handle, 22 MojoGLES2Context (*GLES2CreateContext)(MojoHandle handle,
23 const int32_t* attrib_list, 23 const int32_t* attrib_list,
24 MojoGLES2ContextLost lost_callback, 24 MojoGLES2ContextLost lost_callback,
25 void* closure, 25 void* closure);
26 const MojoAsyncWaiter* async_waiter);
27 void (*GLES2DestroyContext)(MojoGLES2Context context); 26 void (*GLES2DestroyContext)(MojoGLES2Context context);
28 void (*GLES2MakeCurrent)(MojoGLES2Context context); 27 void (*GLES2MakeCurrent)(MojoGLES2Context context);
29 void (*GLES2SwapBuffers)(); 28 void (*GLES2SwapBuffers)();
30 29
31 // TODO(piman): We shouldn't have to leak this interface, especially in a 30 // TODO(piman): We shouldn't have to leak this interface, especially in a
32 // type-unsafe way. 31 // type-unsafe way.
33 void* (*GLES2GetGLES2Interface)(MojoGLES2Context context); 32 void* (*GLES2GetGLES2Interface)(MojoGLES2Context context);
34 }; 33 };
35 #pragma pack(pop) 34 #pragma pack(pop)
36 35
(...skipping 16 matching lines...) Expand all
53 // a DSO linked with mojo_system. For example: 52 // a DSO linked with mojo_system. For example:
54 // MojoSetGLES2ControlThunksFn mojo_set_gles2_control_thunks_fn = 53 // MojoSetGLES2ControlThunksFn mojo_set_gles2_control_thunks_fn =
55 // reinterpret_cast<MojoSetGLES2ControlThunksFn>( 54 // reinterpret_cast<MojoSetGLES2ControlThunksFn>(
56 // app_library.GetFunctionPointer("MojoSetGLES2ControlThunks")); 55 // app_library.GetFunctionPointer("MojoSetGLES2ControlThunks"));
57 // The expected size of |gles2_control_thunks| is returned. 56 // The expected size of |gles2_control_thunks| is returned.
58 // The contents of |gles2_control_thunks| are copied. 57 // The contents of |gles2_control_thunks| are copied.
59 typedef size_t (*MojoSetGLES2ControlThunksFn)( 58 typedef size_t (*MojoSetGLES2ControlThunksFn)(
60 const MojoGLES2ControlThunks* gles2_control_thunks); 59 const MojoGLES2ControlThunks* gles2_control_thunks);
61 60
62 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_ 61 #endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/gles2.h ('k') | mojo/public/platform/native/gles2_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698