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

Unified Diff: mojo/public/platform/native/gles2_thunks.h

Issue 453163002: Expose CHROMIUM_texture_mailbox/sync_point stubs in mojo public headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: define GL_GLEXT_PROTOTYPES in mojo_gles2_impl Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/platform/native/gles2_impl_thunks.cc ('k') | mojo/public/platform/native/gles2_thunks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/gles2_thunks.h
diff --git a/mojo/public/platform/native/gles2_thunks.h b/mojo/public/platform/native/gles2_thunks.h
index 53375e20a3cffaa694ffdf012e5690654e848ee7..4718ab37528441f092ad8a341935aabe4c302303 100644
--- a/mojo/public/platform/native/gles2_thunks.h
+++ b/mojo/public/platform/native/gles2_thunks.h
@@ -59,44 +59,4 @@ inline MojoGLES2ControlThunks MojoMakeGLES2ControlThunks() {
typedef size_t (*MojoSetGLES2ControlThunksFn)(
const MojoGLES2ControlThunks* gles2_control_thunks);
-// -----------------------------------------------------------------------------
-
-// Like MojoGLES2ControlThunks, but specifies the frozen GLES2 API. Separated
-// out as MojoGLES2ControlThunks may be modified and added to, but this
-// interface is frozen.
-#pragma pack(push, 8)
-struct MojoGLES2ImplThunks {
- size_t size; // Should be set to sizeof(MojoGLES2ImplThunks).
-
-#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
- ReturnType (*Function) PARAMETERS;
-#include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
-#undef VISIT_GL_CALL
-};
-#pragma pack(pop)
-
-// Intended to be called from the embedder to get the embedder's implementation
-// of GLES2.
-inline MojoGLES2ImplThunks MojoMakeGLES2ImplThunks() {
- MojoGLES2ImplThunks gles2_impl_thunks = {
- sizeof(MojoGLES2ImplThunks),
-#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
- gl##Function,
-#include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
-#undef VISIT_GL_CALL
- };
-
- return gles2_impl_thunks;
-}
-
-// Use this type for the function found by dynamically discovering it in
-// a DSO linked with mojo_system. For example:
-// MojoSetGLES2ImplThunksFn mojo_set_gles2_impl_thunks_fn =
-// reinterpret_cast<MojoSetGLES2ImplThunksFn>(
-// app_library.GetFunctionPointer("MojoSetGLES2ImplThunks"));
-// The expected size of |gles2_impl_thunks| is returned.
-// The contents of |gles2_impl_thunks| are copied.
-typedef size_t (*MojoSetGLES2ImplThunksFn)(
- const MojoGLES2ImplThunks* gles2_impl_thunks);
-
#endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_THUNKS_H_
« no previous file with comments | « mojo/public/platform/native/gles2_impl_thunks.cc ('k') | mojo/public/platform/native/gles2_thunks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698