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

Unified Diff: mojo/public/c/gpu/MGL/mgl_onscreen.h

Issue 1288583002: Add MGL entry points and port spinning_cube to use them (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/public/c/gpu/MGL/mgl.h ('k') | mojo/public/c/gpu/MGL/mgl_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/gpu/MGL/mgl_onscreen.h
diff --git a/mojo/public/c/gpu/MGL/mgl_onscreen.h b/mojo/public/c/gpu/MGL/mgl_onscreen.h
new file mode 100644
index 0000000000000000000000000000000000000000..f79521490f23cdef097abc6d6c71f81a00414b01
--- /dev/null
+++ b/mojo/public/c/gpu/MGL/mgl_onscreen.h
@@ -0,0 +1,29 @@
+// 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.
+
+// Note: This header should be compilable as C.
+
+#ifndef MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_
+#define MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_
+
+#include <stdint.h>
+
+#include "mojo/public/c/gpu/MGL/mgl_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Resizes the default framebuffer for the currently bound onscreen MGLContext.
+void MGLResizeSurface(uint32_t width, uint32_t height);
+
+// Presents the default framebuffer for the currently bound onscreen MGLContext
+// to the windowing system or display.
+void MGLSwapBuffers();
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // MOJO_PUBLIC_C_GPU_MGL_MGL_ONSCREEN_H_
« no previous file with comments | « mojo/public/c/gpu/MGL/mgl.h ('k') | mojo/public/c/gpu/MGL/mgl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698