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

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

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/mgl_onscreen_thunks.c
diff --git a/third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.c b/third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.c
deleted file mode 100644
index 5b72fcd8d9703d3bf8e90c158eef0988d9e724ca..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/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 "third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.h"
-
-#include <assert.h>
-
-#include "third_party/mojo/src/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);
-}

Powered by Google App Engine
This is Rietveld 408576698