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

Unified Diff: mojo/public/platform/native/system_thunks.cc

Issue 413303002: mojo: Convert gles2 to the new thunking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add forgotten file. Created 6 years, 5 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_thunks.cc ('k') | mojo/public/platform/native/thunk_export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.cc
diff --git a/mojo/public/platform/native/system_thunks.cc b/mojo/public/platform/native/system_thunks.cc
index 6fdc4f4530ff0af9c6205c6e02d4e92c0add2061..fed6db9d9b981e1bc9450074ce2542104c033438 100644
--- a/mojo/public/platform/native/system_thunks.cc
+++ b/mojo/public/platform/native/system_thunks.cc
@@ -6,6 +6,8 @@
#include <assert.h>
+#include "mojo/public/platform/native/thunk_export.h"
+
extern "C" {
static MojoSystemThunks g_thunks = {0};
@@ -152,14 +154,6 @@ MojoResult MojoUnmapBuffer(void* buffer) {
return g_thunks.UnmapBuffer(buffer);
}
-// Call this function by looking
-// Always export this api.
-#if defined(WIN32)
-#define THUNK_EXPORT __declspec(dllexport)
-#else
-#define THUNK_EXPORT __attribute__((visibility("default")))
-#endif
-
extern "C" THUNK_EXPORT size_t MojoSetSystemThunks(
const MojoSystemThunks* system_thunks) {
if (system_thunks->size >= sizeof(g_thunks))
« no previous file with comments | « mojo/public/platform/native/gles2_thunks.cc ('k') | mojo/public/platform/native/thunk_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698