OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // Because we are using both the real system GL and our own. | 9 // This file contains Chromium-specific GLES2 declarations. |
10 // emulated GL we need to use different names to avoid conflicts. | |
11 | 10 |
12 #ifndef GPU_GLES2_GL2CHROMIUM_H_ | 11 #ifndef GPU_GLES2_GL2CHROMIUM_H_ |
13 #define GPU_GLES2_GL2CHROMIUM_H_ | 12 #define GPU_GLES2_GL2CHROMIUM_H_ |
14 | 13 |
| 14 #include <GLES2/gl2platform.h> |
| 15 #define GL_CONTEXT_LOST 0x300E |
| 16 |
| 17 // Because we are using both the real system GL and our own |
| 18 // emulated GL we need to use different names to avoid conflicts. |
15 #if defined(GLES2_USE_CPP_BINDINGS) | 19 #if defined(GLES2_USE_CPP_BINDINGS) |
16 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name | 20 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name |
17 #else | 21 #else |
18 #define GLES2_GET_FUN(name) GLES2 ## name | 22 #define GLES2_GET_FUN(name) GLES2 ## name |
19 #endif | 23 #endif |
20 | 24 |
21 #define glActiveTexture GLES2_GET_FUN(ActiveTexture) | 25 #define glActiveTexture GLES2_GET_FUN(ActiveTexture) |
22 #define glAttachShader GLES2_GET_FUN(AttachShader) | 26 #define glAttachShader GLES2_GET_FUN(AttachShader) |
23 #define glBindAttribLocation GLES2_GET_FUN(BindAttribLocation) | 27 #define glBindAttribLocation GLES2_GET_FUN(BindAttribLocation) |
24 #define glBindBuffer GLES2_GET_FUN(BindBuffer) | 28 #define glBindBuffer GLES2_GET_FUN(BindBuffer) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 #define glReleaseTexImage2DCHROMIUM GLES2_GET_FUN(ReleaseTexImage2DCHROMIUM) | 228 #define glReleaseTexImage2DCHROMIUM GLES2_GET_FUN(ReleaseTexImage2DCHROMIUM) |
225 #define glTraceBeginCHROMIUM GLES2_GET_FUN(TraceBeginCHROMIUM) | 229 #define glTraceBeginCHROMIUM GLES2_GET_FUN(TraceBeginCHROMIUM) |
226 #define glTraceEndCHROMIUM GLES2_GET_FUN(TraceEndCHROMIUM) | 230 #define glTraceEndCHROMIUM GLES2_GET_FUN(TraceEndCHROMIUM) |
227 #define glAsyncTexSubImage2DCHROMIUM GLES2_GET_FUN(AsyncTexSubImage2DCHROMIUM) | 231 #define glAsyncTexSubImage2DCHROMIUM GLES2_GET_FUN(AsyncTexSubImage2DCHROMIUM) |
228 #define glAsyncTexImage2DCHROMIUM GLES2_GET_FUN(AsyncTexImage2DCHROMIUM) | 232 #define glAsyncTexImage2DCHROMIUM GLES2_GET_FUN(AsyncTexImage2DCHROMIUM) |
229 #define glDiscardFramebufferEXT GLES2_GET_FUN(DiscardFramebufferEXT) | 233 #define glDiscardFramebufferEXT GLES2_GET_FUN(DiscardFramebufferEXT) |
230 #define glLoseContextCHROMIUM GLES2_GET_FUN(LoseContextCHROMIUM) | 234 #define glLoseContextCHROMIUM GLES2_GET_FUN(LoseContextCHROMIUM) |
231 | 235 |
232 #endif // GPU_GLES2_GL2CHROMIUM_H_ | 236 #endif // GPU_GLES2_GL2CHROMIUM_H_ |
233 | 237 |
OLD | NEW |