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

Side by Side Diff: mojo/public/platform/nacl/mgl_irt.h

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo 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 unified diff | Download patch
« no previous file with comments | « mojo/public/platform/nacl/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ 5 #ifndef MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_
6 #define MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ 6 #define MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_
7 7
8 #include "mojo/public/c/gpu/MGL/mgl.h" 8 #include <MGL/mgl.h>
9 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" 9 #include <MGL/mgl_onscreen.h>
10 #include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h" 10 #include <MGL/mgl_signal_sync_point.h>
11 11
12 #define NACL_IRT_MGL_v0_1 "nacl-irt-mgl-0.1" 12 #define NACL_IRT_MGL_v0_1 "nacl-irt-mgl-0.1"
13 13
14 // See mojo/public/c/gpu/MGL/mgl.h for documentation. 14 // See mojo/public/c/include/MGL/mgl.h for documentation.
15 struct nacl_irt_mgl { 15 struct nacl_irt_mgl {
16 MGLContext (*MGLCreateContext)(MGLOpenGLAPIVersion version, 16 MGLContext (*MGLCreateContext)(MGLOpenGLAPIVersion version,
17 MojoHandle command_buffer_handle, 17 MojoHandle command_buffer_handle,
18 MGLContext share_group, 18 MGLContext share_group,
19 MGLContextLostCallback lost_callback, 19 MGLContextLostCallback lost_callback,
20 void* lost_callback_closure, 20 void* lost_callback_closure,
21 const struct MojoAsyncWaiter* async_waiter); 21 const struct MojoAsyncWaiter* async_waiter);
22 void (*MGLDestroyContext)(MGLContext context); 22 void (*MGLDestroyContext)(MGLContext context);
23 void (*MGLMakeCurrent)(MGLContext context); 23 void (*MGLMakeCurrent)(MGLContext context);
24 MGLContext (*MGLGetCurrentContext)(void); 24 MGLContext (*MGLGetCurrentContext)(void);
25 MGLMustCastToProperFunctionPointerType (*MGLGetProcAddress)(const char* name); 25 MGLMustCastToProperFunctionPointerType (*MGLGetProcAddress)(const char* name);
26 }; 26 };
27 27
28 #define NACL_IRT_MGL_ONSCREEN_v0_1 "nacl-irt-mgl-onscreen-0.1" 28 #define NACL_IRT_MGL_ONSCREEN_v0_1 "nacl-irt-mgl-onscreen-0.1"
29 29
30 // See mojo/public/c/gpu/MGL/mgl_onscreen.h for documentation. 30 // See mojo/public/c/include/MGL/mgl_onscreen.h for documentation.
31 struct nacl_irt_mgl_onscreen { 31 struct nacl_irt_mgl_onscreen {
32 void (*MGLResizeSurface)(uint32_t width, uint32_t height); 32 void (*MGLResizeSurface)(uint32_t width, uint32_t height);
33 void (*MGLSwapBuffers)(void); 33 void (*MGLSwapBuffers)(void);
34 }; 34 };
35 35
36 #define NACL_IRT_MGL_SIGNAL_SYNC_POINT_v0_1 "nacl-irt-mgl-signal-sync-point-0.1" 36 #define NACL_IRT_MGL_SIGNAL_SYNC_POINT_v0_1 "nacl-irt-mgl-signal-sync-point-0.1"
37 37
38 // See mojo/public/c/gpu/MGL/mgl_signal_sync_point.h for documentation. 38 // See mojo/public/c/include/MGL/mgl_signal_sync_point.h for documentation.
39 struct nacl_irt_mgl_signal_sync_point { 39 struct nacl_irt_mgl_signal_sync_point {
40 void (*MGLSignalSyncPoint)(uint32_t sync_point, 40 void (*MGLSignalSyncPoint)(uint32_t sync_point,
41 MGLSignalSyncPointCallback callback, 41 MGLSignalSyncPointCallback callback,
42 void* closure); 42 void* closure);
43 }; 43 };
44 44
45 #endif // MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_ 45 #endif // MOJO_PUBLIC_PLATFORM_NACL_MGL_IRT_H_
OLDNEW
« no previous file with comments | « mojo/public/platform/nacl/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698