Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: gpu/GLES2/gl2chromium.h

Issue 11679005: Extract Chromium-specific parts out of third_party/khronos/GLES2 . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for gpu waterfall Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/GLES2/gl2extchromium.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/GLES2/gl2extchromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698