| 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/gpu/MGL/mgl.h" |
| 10 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" | 10 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 void MGLResizeSurface(uint32_t width, uint32_t height) { | 44 void MGLResizeSurface(uint32_t width, uint32_t height) { |
| 45 return gles2::ControlThunksImpl::Get()->ResizeSurface(width, height); | 45 return gles2::ControlThunksImpl::Get()->ResizeSurface(width, height); |
| 46 } | 46 } |
| 47 | 47 |
| 48 void MGLSwapBuffers() { | 48 void MGLSwapBuffers() { |
| 49 return gles2::ControlThunksImpl::Get()->SwapBuffers(); | 49 return gles2::ControlThunksImpl::Get()->SwapBuffers(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 MGLMustCastToProperFunctionPointerType MGLGetProcAddress(const char* procname) { |
| 53 return gles2::ControlThunksImpl::Get()->GetProcAddress(procname); |
| 54 } |
| 55 |
| 52 } // extern "C" | 56 } // extern "C" |
| OLD | NEW |