| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ | 5 #ifndef MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ |
| 6 #define MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ | 6 #define MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ |
| 7 | 7 |
| 8 // Note: This header should be compilable as C. | 8 // Note: This header should be compilable as C. |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "mojo/public/gles2/gles2_export.h" | 12 #include "mojo/public/gles2/gles2_export.h" |
| 13 | 13 |
| 14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
| 15 extern "C" { | 15 extern "C" { |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 typedef struct MojoGLES2ContextPrivate *MojoGLES2Context; | 18 typedef struct MojoGLES2ContextPrivate *MojoGLES2Context; |
| 19 // TODO(piman): | 19 // TODO(piman): create context synchronously |
| 20 // - create context synchronously | 20 typedef void (*MojoGLES2ContextCreated)(void* closure); |
| 21 // - pass width/height through native viewport, not here. | |
| 22 typedef void (*MojoGLES2ContextCreated)( | |
| 23 void* closure, uint32_t width, uint32_t height); | |
| 24 typedef void (*MojoGLES2ContextLost)(void* closure); | 21 typedef void (*MojoGLES2ContextLost)(void* closure); |
| 25 typedef void (*MojoGLES2DrawAnimationFrame)(void* closure); | 22 typedef void (*MojoGLES2DrawAnimationFrame)(void* closure); |
| 26 | 23 |
| 27 #ifdef __cplusplus | 24 #ifdef __cplusplus |
| 28 } // extern "C" | 25 } // extern "C" |
| 29 #endif | 26 #endif |
| 30 | 27 |
| 31 #endif // MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ | 28 #endif // MOJO_PUBLIC_GLES2_GLES2_TYPES_H_ |
| OLD | NEW |