Revert of Revert of Allow creating context for cc worker thread. (patchset #1 id...
[chromium-blink-merge.git] / gpu / GLES2 / gl2chromium.h
blob0dc648d66086d4bd5cc56b761320d5294a6c7c43
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
3 // found in the LICENSE file.
5 // This file contains Chromium-specific GLES2 declarations.
7 #ifndef GPU_GLES2_GL2CHROMIUM_H_
8 #define GPU_GLES2_GL2CHROMIUM_H_
10 #include <GLES2/gl2platform.h>
12 #define GL_CONTEXT_LOST 0x300E
13 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700
14 #define GL_PATH_PROJECTION_CHROMIUM 0x1701
15 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6
16 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7
18 #if defined(GLES2_USE_MOJO)
19 #define GLES2_GET_FUN(name) MojoGLES2gl ## name
20 #else
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.
23 #if defined(GLES2_USE_CPP_BINDINGS)
24 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name
25 #else
26 #define GLES2_GET_FUN(name) GLES2 ## name
27 #endif
28 #endif
30 #include <GLES2/gl2chromium_autogen.h>
32 #endif // GPU_GLES2_GL2CHROMIUM_H_