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

Side by Side Diff: mojo/public/c/gpu/GLES2/gl2mojo.h

Issue 1288583002: Add MGL entry points and port spinning_cube to use them (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « mojo/public/c/gpu/GLES2/gl2extmojo.h ('k') | mojo/public/c/gpu/GLES2/gl2mojo_autogen.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 contains Chromium-specific GLES2 declarations. 5 // This file contains Mojo-specific GLES2 declarations.
6 6
7 #ifndef GPU_GLES2_GL2CHROMIUM_H_ 7 #ifndef GPU_GLES2_GL2MOJO_H_
8 #define GPU_GLES2_GL2CHROMIUM_H_ 8 #define GPU_GLES2_GL2MOJO_H_
9 9
10 #include <GLES2/gl2platform.h> 10 #include <GLES2/gl2platform.h>
11 11
12 #define GL_CONTEXT_LOST 0x300E 12 #define GL_CONTEXT_LOST 0x300E
13 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 13 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700
14 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 14 #define GL_PATH_PROJECTION_CHROMIUM 0x1701
15 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 15 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6
16 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 16 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7
17 17
18 #if defined(GLES2_USE_MOJO) 18 #if defined(GLES2_USE_MOJO)
19 #define GLES2_GET_FUN(name) MojoGLES2gl ## name 19 #define GLES2_GET_FUN(name) MojoGLES2gl ## name
20 #else 20 #else
21 // Because we are using both the real system GL and our own 21 // Because we are using both the real system GL and our own
22 // emulated GL we need to use different names to avoid conflicts. 22 // emulated GL we need to use different names to avoid conflicts.
23 #if defined(GLES2_USE_CPP_BINDINGS) 23 #if defined(GLES2_USE_CPP_BINDINGS)
24 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name 24 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name
25 #else 25 #else
26 #define GLES2_GET_FUN(name) GLES2 ## name 26 #define GLES2_GET_FUN(name) GLES2 ## name
27 #endif 27 #endif
28 #endif 28 #endif
29 29
30 #include <GLES2/gl2chromium_autogen.h> 30 #include <GLES2/gl2mojo_autogen.h>
31 31
32 #endif // GPU_GLES2_GL2CHROMIUM_H_ 32 #endif // GPU_GLES2_GL2MOJO_H_
33
OLDNEW
« no previous file with comments | « mojo/public/c/gpu/GLES2/gl2extmojo.h ('k') | mojo/public/c/gpu/GLES2/gl2mojo_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698