OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 5 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #ifndef GL_FALSE | 9 #ifndef GL_FALSE |
8 #define GL_FALSE 0 | 10 #define GL_FALSE 0 |
9 #endif // GL_FALSE | 11 #endif // GL_FALSE |
10 | 12 |
11 #ifndef GL_TRUE | 13 #ifndef GL_TRUE |
12 #define GL_TRUE 1 | 14 #define GL_TRUE 1 |
13 #endif // GL_TRUE | 15 #endif // GL_TRUE |
14 | 16 |
15 #if defined(__GNUC__) && !defined(__APPLE__) | 17 #if defined(__GNUC__) && !defined(__APPLE__) |
16 #define PP_TLS __thread | 18 #define PP_TLS __thread |
(...skipping 29 matching lines...) Expand all Loading... |
46 } | 48 } |
47 | 49 |
48 PP_Resource GL_APIENTRY glGetCurrentContextPPAPI() { | 50 PP_Resource GL_APIENTRY glGetCurrentContextPPAPI() { |
49 return g_current_context; | 51 return g_current_context; |
50 } | 52 } |
51 | 53 |
52 const struct PPB_OpenGLES2_Dev* GL_APIENTRY glGetInterfacePPAPI() { | 54 const struct PPB_OpenGLES2_Dev* GL_APIENTRY glGetInterfacePPAPI() { |
53 return g_gles2_interface; | 55 return g_gles2_interface; |
54 } | 56 } |
55 | 57 |
OLD | NEW |