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

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

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.h
diff --git a/third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.h b/third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.h
deleted file mode 100644
index 74068dfdc44f1167a3f24f274265ea33315a8b56..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/platform/native/mgl_onscreen_thunks.h
+++ /dev/null
@@ -1,46 +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.
-
-#ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_
-
-#include <stddef.h>
-
-#include "third_party/mojo/src/mojo/public/c/gpu/MGL/mgl_onscreen.h"
-
-// Structure used to bind the interface which manipulates MGL contexts to a
-// DSO to theose of the embedder.
-//
-// This is the ABI between the embedder and the DSO. It can only have new
-// functions added to the end. No other changes are supported.
-#pragma pack(push, 8)
-struct MGLOnscreenThunks {
- size_t size; // Should be set to sizeof(MojoMGLOnscreenThunks).
-
- void (*MGLResizeSurface)(uint32_t width, uint32_t height);
- void (*MGLSwapBuffers)(void);
-};
-#pragma pack(pop)
-
-// Intended to be called from the embedder. Returns an object initialized to
-// contain pointers to each of the embedder's MGLOnscreenThunks functions.
-inline struct MGLOnscreenThunks MojoMakeMGLOnscreenThunks() {
- struct MGLOnscreenThunks mgl_onscreen_thunks = {
- sizeof(struct MGLOnscreenThunks), MGLResizeSurface, MGLSwapBuffers,
- };
-
- return mgl_onscreen_thunks;
-}
-
-// Use this type for the function found by dynamically discovering it in
-// a DSO linked with mojo_system. For example:
-// MojoSetMGLOnscreenThunksFn mojo_set_gles2_thunks_fn =
-// reinterpret_cast<MojoSetMGLOnscreenThunksFn>(
-// app_library.GetFunctionPointer("MojoSetMGLOnscreenThunks"));
-// The expected size of |mgl_thunks| is returned.
-// The contents of |mgl_thunks| are copied.
-typedef size_t (*MojoSetMGLOnscreenThunksFn)(
- const struct MGLOnscreenThunks* mgl_thunks);
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_PLATFORM_NATIVE_MGL_ONSCREEN_THUNKS_H_

Powered by Google App Engine
This is Rietveld 408576698