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

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

Issue 1317123004: Expose EXT_discard_framebuffer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
Index: mojo/public/platform/native/gles2_impl_ext_discard_framebuffer_thunks.h
diff --git a/mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.h b/mojo/public/platform/native/gles2_impl_ext_discard_framebuffer_thunks.h
similarity index 50%
copy from mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.h
copy to mojo/public/platform/native/gles2_impl_ext_discard_framebuffer_thunks.h
index e75c85759f9668b6d25bc4f5723c4ecd3d0a284a..25d681fa2eed15b2c84444b457d8986e3781e0bb 100644
--- a/mojo/public/platform/native/gles2_impl_oes_vertex_array_object_thunks.h
+++ b/mojo/public/platform/native/gles2_impl_ext_discard_framebuffer_thunks.h
@@ -8,47 +8,47 @@
// clang-format -i -style=chromium filename
// DO NOT EDIT!
-#ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_OES_VERTEX_ARRAY_OBJECT_THUNKS_H_
-#define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_OES_VERTEX_ARRAY_OBJECT_THUNKS_H_
+#ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_DISCARD_FRAMEBUFFER_THUNKS_H_
+#define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_DISCARD_FRAMEBUFFER_THUNKS_H_
#include <stddef.h>
#define GL_GLEXT_PROTOTYPES
#include "mojo/public/c/gpu/GLES2/gl2extmojo.h"
-// Specifies the frozen API for the OES_vertex_array_object extension.
+// Specifies the frozen API for the EXT_discard_framebuffer extension.
#pragma pack(push, 8)
-struct MojoGLES2ImplOESVertexArrayObjectThunks {
+struct MojoGLES2ImplEXTDiscardFramebufferThunks {
size_t size; // Should be set to sizeof(*this).
#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
ReturnType(GL_APIENTRY* Function) PARAMETERS;
-#include "mojo/public/platform/native/gles2/call_visitor_oes_vertex_array_object_autogen.h"
+#include "mojo/public/platform/native/gles2/call_visitor_ext_discard_framebuffer_autogen.h"
#undef VISIT_GL_CALL
};
#pragma pack(pop)
#ifdef __cplusplus
// Intended to be called from the embedder to get the embedder's implementation
-// of oes_vertex_array_object.
-inline MojoGLES2ImplOESVertexArrayObjectThunks
-MojoMakeGLES2ImplOESVertexArrayObjectThunks() {
- MojoGLES2ImplOESVertexArrayObjectThunks
- gles2_impl_oes_vertex_array_object_thunks = {
- sizeof(MojoGLES2ImplOESVertexArrayObjectThunks),
+// of ext_discard_framebuffer.
+inline MojoGLES2ImplEXTDiscardFramebufferThunks
+MojoMakeGLES2ImplEXTDiscardFramebufferThunks() {
+ MojoGLES2ImplEXTDiscardFramebufferThunks
+ gles2_impl_ext_discard_framebuffer_thunks = {
+ sizeof(MojoGLES2ImplEXTDiscardFramebufferThunks),
#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function,
-#include "mojo/public/platform/native/gles2/call_visitor_oes_vertex_array_object_autogen.h"
+#include "mojo/public/platform/native/gles2/call_visitor_ext_discard_framebuffer_autogen.h"
#undef VISIT_GL_CALL
};
- return gles2_impl_oes_vertex_array_object_thunks;
+ return gles2_impl_ext_discard_framebuffer_thunks;
}
#endif // __cplusplus
// Use this type for the function found by dynamically discovering it in
// a DSO linked with mojo_system.
-// The contents of |gles2_impl_oes_vertex_array_object_thunks| are copied.
-typedef size_t (*MojoSetGLES2ImplOESVertexArrayObjectThunksFn)(
- const MojoGLES2ImplOESVertexArrayObjectThunks* thunks);
+// The contents of |gles2_impl_ext_discard_framebuffer_thunks| are copied.
+typedef size_t (*MojoSetGLES2ImplEXTDiscardFramebufferThunksFn)(
+ const MojoGLES2ImplEXTDiscardFramebufferThunks* thunks);
-#endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_OES_VERTEX_ARRAY_OBJECT_THUNKS_H_
+#endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_EXT_DISCARD_FRAMEBUFFER_THUNKS_H_

Powered by Google App Engine
This is Rietveld 408576698