| Index: mojo/nacl/irt_mojo_nonsfi.cc
|
| diff --git a/mojo/nacl/irt_mojo_nonsfi.cc b/mojo/nacl/irt_mojo_nonsfi.cc
|
| index 29cb0b7fbe2ce9616c14da7199ed8f270b49f62d..8486a8d20f804dccc0b7c8e330a8ce91ab04e056 100644
|
| --- a/mojo/nacl/irt_mojo_nonsfi.cc
|
| +++ b/mojo/nacl/irt_mojo_nonsfi.cc
|
| @@ -39,8 +39,25 @@ 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_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},
|
| +};
|
|
|
| } // namespace
|
|
|
|
|