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

Unified Diff: third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h

Issue 1032143003: Update mojo sdk to rev e252977e5b22685a1b4fdb14eda40c78935ea50a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h
diff --git a/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h b/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h
new file mode 100644
index 0000000000000000000000000000000000000000..af37a91c37d7eef759b710d48f82a33cfe908d3c
--- /dev/null
+++ b/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sub_image_thunks.h
@@ -0,0 +1,44 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SUB_IMAGE_THUNKS_H_
+#define MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SUB_IMAGE_THUNKS_H_
+
+#include <stddef.h>
+
+#include "mojo/public/c/gles2/chromium_sub_image.h"
+
+// Specifies the frozen API for the GLES2 CHROMIUM_sub_image extension.
+#pragma pack(push, 8)
+struct MojoGLES2ImplChromiumSubImageThunks {
+ size_t size; // Should be set to sizeof(*this).
+
+#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
+ ReturnType(*Function) PARAMETERS;
+#include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_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 MojoGLES2ImplChromiumSubImageThunks
+MojoMakeGLES2ImplChromiumSubImageThunks() {
+ MojoGLES2ImplChromiumSubImageThunks gles2_impl_chromium_sub_image_thunks = {
+ sizeof(MojoGLES2ImplChromiumSubImageThunks),
+#define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) gl##Function,
+#include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_autogen.h"
+#undef VISIT_GL_CALL
+ };
+
+ return gles2_impl_chromium_sub_image_thunks;
+}
+
+// Use this type for the function found by dynamically discovering it in
+// a DSO linked with mojo_system.
+// The contents of |gles2_impl_chromium_sub_image_thunks| are copied.
+typedef size_t (*MojoSetGLES2ImplChromiumSubImageThunksFn)(
+ const MojoGLES2ImplChromiumSubImageThunks* thunks);
+
+#endif // MOJO_PUBLIC_PLATFORM_NATIVE_GLES2_IMPL_CHROMIUM_SUB_IMAGE_THUNKS_H_

Powered by Google App Engine
This is Rietveld 408576698