| 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 // Note: This header should be compilable as C. | 5 // Note: This header should be compilable as C. |
| 6 | 6 |
| 7 #ifndef MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ | 7 #ifndef MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |
| 8 #define MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ | 8 #define MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |
| 9 | 9 |
| 10 #ifdef __cplusplus | 10 #include <mojo/macros.h> |
| 11 extern "C" { | 11 |
| 12 #endif | 12 MOJO_BEGIN_EXTERN_C |
| 13 | 13 |
| 14 typedef struct MGLContextPrivate* MGLContext; | 14 typedef struct MGLContextPrivate* MGLContext; |
| 15 typedef void (*MGLContextLostCallback)(void* closure); | 15 typedef void (*MGLContextLostCallback)(void* closure); |
| 16 typedef void (*MGLSignalSyncPointCallback)(void* closure); | 16 typedef void (*MGLSignalSyncPointCallback)(void* closure); |
| 17 | 17 |
| 18 // This is a generic function pointer type, which must be cast to the proper | 18 // This is a generic function pointer type, which must be cast to the proper |
| 19 // type and calling convention before use. | 19 // type and calling convention before use. |
| 20 typedef void (*MGLMustCastToProperFunctionPointerType)(void); | 20 typedef void (*MGLMustCastToProperFunctionPointerType)(void); |
| 21 | 21 |
| 22 #ifdef __cplusplus | 22 MOJO_END_EXTERN_C |
| 23 } // extern "C" | |
| 24 #endif | |
| 25 | 23 |
| 26 #endif // MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ | 24 #endif // MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |
| OLD | NEW |