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

Unified Diff: mojo/public/platform/native/mgl_onscreen_thunks.c

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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/mgl_onscreen_thunks.c
diff --git a/mojo/public/platform/native/mgl_onscreen_thunks.c b/mojo/public/platform/native/mgl_onscreen_thunks.c
deleted file mode 100644
index c41b583b6358c5b22f3423ac67ff9dbbcab6bf86..0000000000000000000000000000000000000000
--- a/mojo/public/platform/native/mgl_onscreen_thunks.c
+++ /dev/null
@@ -1,28 +0,0 @@
-// 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.
-
-#include "mojo/public/platform/native/mgl_onscreen_thunks.h"
-
-#include <assert.h>
-
-#include "mojo/public/platform/native/thunk_export.h"
-
-static struct MGLOnscreenThunks g_onscreen_thunks = {0};
-
-void MGLResizeSurface(uint32_t width, uint32_t height) {
- assert(g_onscreen_thunks.MGLResizeSurface);
- g_onscreen_thunks.MGLResizeSurface(width, height);
-}
-
-void MGLSwapBuffers(void) {
- assert(g_onscreen_thunks.MGLSwapBuffers);
- g_onscreen_thunks.MGLSwapBuffers();
-}
-
-THUNK_EXPORT size_t MojoSetMGLOnscreenThunks(
- const struct MGLOnscreenThunks* mgl_onscreen_thunks) {
- if (mgl_onscreen_thunks->size >= sizeof(g_onscreen_thunks))
- g_onscreen_thunks = *mgl_onscreen_thunks;
- return sizeof(g_onscreen_thunks);
-}
« no previous file with comments | « mojo/public/platform/native/mgl_onscreen_thunks.h ('k') | mojo/public/platform/native/mgl_signal_sync_point_thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698