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

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

Issue 169603002: Add initial support for NV_path_rendering extension to gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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
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 Chromium-specific GLES2 declarations.
6 6
7 #ifndef GPU_GLES2_GL2CHROMIUM_H_ 7 #ifndef GPU_GLES2_GL2CHROMIUM_H_
8 #define GPU_GLES2_GL2CHROMIUM_H_ 8 #define GPU_GLES2_GL2CHROMIUM_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_MATRIX_MODE 0x0BA0
piman 2014/04/11 22:19:27 nit: GL_MATRIX_MODE_CHROMIUM (same below)
Kimmo Kinnunen 2014/04/15 16:16:58 Removed GL_MATRIX_MODE_CHROMIUM. Done (for below)
14 #define GL_MODELVIEW 0x1700
15 #define GL_PROJECTION 0x1701
13 16
14 #if defined(GLES2_USE_MOJO) 17 #if defined(GLES2_USE_MOJO)
15 #define GLES2_GET_FUN(name) MojoGLES2gl ## name 18 #define GLES2_GET_FUN(name) MojoGLES2gl ## name
16 #else 19 #else
17 // Because we are using both the real system GL and our own 20 // Because we are using both the real system GL and our own
18 // emulated GL we need to use different names to avoid conflicts. 21 // emulated GL we need to use different names to avoid conflicts.
19 #if defined(GLES2_USE_CPP_BINDINGS) 22 #if defined(GLES2_USE_CPP_BINDINGS)
20 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name 23 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name
21 #else 24 #else
22 #define GLES2_GET_FUN(name) GLES2 ## name 25 #define GLES2_GET_FUN(name) GLES2 ## name
23 #endif 26 #endif
24 #endif 27 #endif
25 28
26 #include <GLES2/gl2chromium_autogen.h> 29 #include <GLES2/gl2chromium_autogen.h>
27 30
28 #endif // GPU_GLES2_GL2CHROMIUM_H_ 31 #endif // GPU_GLES2_GL2CHROMIUM_H_
29 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698