| Index: mojo/nacl/nonsfi/irt_mojo_nonsfi.cc
|
| diff --git a/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc b/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc
|
| index a63189b6c6484454d03e133895b772d4e0f67012..ae3190ed9e5e95218321076fbe4dbadd1a80c8b8 100644
|
| --- a/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc
|
| +++ b/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc
|
| @@ -39,8 +39,31 @@ const struct nacl_irt_mojo kIrtMojo = {
|
| _MojoGetInitialHandle,
|
| };
|
|
|
| +const struct nacl_irt_mgl kIrtMGL = {
|
| + MGLCreateContext,
|
| + MGLDestroyContext,
|
| + MGLMakeCurrent,
|
| + MGLGetCurrentContext,
|
| + MGLGetProcAddress,
|
| +};
|
| +
|
| +const struct nacl_irt_mgl_onscreen kIrtMGLOnScreen = {
|
| + MGLResizeSurface,
|
| + MGLSwapBuffers,
|
| +};
|
| +
|
| +const struct nacl_irt_mgl_signal_sync_point kIrtMGLSignalSyncPoint = {
|
| + MGLSignalSyncPoint,
|
| +};
|
| +
|
| const struct nacl_irt_interface kIrtInterfaces[] = {
|
| - {NACL_IRT_MOJO_v0_1, &kIrtMojo, sizeof(kIrtMojo), nullptr}};
|
| + {NACL_IRT_MOJO_v0_1, &kIrtMojo, sizeof(kIrtMojo), nullptr},
|
| + {NACL_IRT_MGL_v0_1, &kIrtMGL, sizeof(kIrtMGL), nullptr},
|
| + {NACL_IRT_MGL_ONSCREEN_v0_1, &kIrtMGLOnScreen, sizeof(kIrtMGLOnScreen),
|
| + nullptr},
|
| + {NACL_IRT_MGL_SIGNAL_SYNC_POINT_v0_1, &kIrtMGLSignalSyncPoint,
|
| + sizeof(kIrtMGLSignalSyncPoint), nullptr},
|
| +};
|
|
|
| } // namespace
|
|
|
|
|