OLD | NEW |
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 // This file implements the MGL and MGL onscreen entry points exposed to the | 5 // This file implements the MGL and MGL onscreen entry points exposed to the |
6 // Mojo application by the shell. | 6 // Mojo application by the shell. |
7 | 7 |
8 #include "mojo/gles2/control_thunks_impl.h" | 8 #include "mojo/gles2/control_thunks_impl.h" |
9 #include "mojo/public/c/gpu/MGL/mgl.h" | 9 #include "mojo/public/c/include/MGL/mgl.h" |
10 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" | 10 #include "mojo/public/c/include/MGL/mgl_onscreen.h" |
11 | 11 |
12 extern "C" { | 12 extern "C" { |
13 | 13 |
14 MGLContext MGLCreateContext(MGLOpenGLAPIVersion version, | 14 MGLContext MGLCreateContext(MGLOpenGLAPIVersion version, |
15 MojoHandle command_buffer_handle, | 15 MojoHandle command_buffer_handle, |
16 MGLContext share_group, | 16 MGLContext share_group, |
17 MGLContextLostCallback lost_callback, | 17 MGLContextLostCallback lost_callback, |
18 void* lost_callback_closure, | 18 void* lost_callback_closure, |
19 const struct MojoAsyncWaiter* async_waiter) { | 19 const struct MojoAsyncWaiter* async_waiter) { |
20 return gles2::ControlThunksImpl::Get()->CreateContext( | 20 return gles2::ControlThunksImpl::Get()->CreateContext( |
(...skipping 30 matching lines...) Expand all Loading... |
51 | 51 |
52 void MGLSwapBuffers() { | 52 void MGLSwapBuffers() { |
53 return gles2::ControlThunksImpl::Get()->SwapBuffers(); | 53 return gles2::ControlThunksImpl::Get()->SwapBuffers(); |
54 } | 54 } |
55 | 55 |
56 MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* procname) { | 56 MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* procname) { |
57 return gles2::ControlThunksImpl::Get()->GetProcAddress(procname); | 57 return gles2::ControlThunksImpl::Get()->GetProcAddress(procname); |
58 } | 58 } |
59 | 59 |
60 } // extern "C" | 60 } // extern "C" |
OLD | NEW |