Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 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 /* From ppb_opengles2.idl modified Fri Sep 5 14:52:51 2014. */ | 5 /* From ppb_opengles2.idl modified Fri Sep 5 14:52:51 2014. */ |
| 6 | 6 |
| 7 #ifndef PPAPI_C_PPB_OPENGLES2_H_ | 7 #ifndef PPAPI_C_PPB_OPENGLES2_H_ |
| 8 #define PPAPI_C_PPB_OPENGLES2_H_ | 8 #define PPAPI_C_PPB_OPENGLES2_H_ |
| 9 | 9 |
| 10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" |
| 11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
| 12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
| 13 | 13 |
| 14 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0" | 14 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0" |
| 15 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0 | 15 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0 |
| 16 | 16 |
| 17 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 \ | 17 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 \ |
| 18 "PPB_OpenGLES2InstancedArrays;1.0" | 18 "PPB_OpenGLES2InstancedArrays;1.0" |
|
vmiura
2015/06/19 21:55:22
Remove changes in this file?
Kimmo Kinnunen
2015/06/23 12:03:11
Done.
| |
| 19 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE \ | 19 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE \ |
| 20 PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 | 20 PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 |
| 21 | 21 |
| 22 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 \ | 22 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 \ |
| 23 "PPB_OpenGLES2FramebufferBlit;1.0" | 23 "PPB_OpenGLES2FramebufferBlit;1.0" |
| 24 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE \ | 24 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE \ |
| 25 PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 | 25 PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 |
| 26 | 26 |
| 27 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 \ | 27 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 \ |
| 28 "PPB_OpenGLES2FramebufferMultisample;1.0" | 28 "PPB_OpenGLES2FramebufferMultisample;1.0" |
| 29 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE \ | 29 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE \ |
| 30 PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 | 30 PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 |
| 31 | 31 |
| 32 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 \ | 32 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 \ |
| 33 "PPB_OpenGLES2ChromiumEnableFeature;1.0" | 33 "PPB_OpenGLES2ChromiumEnableFeature;1.0" |
| 34 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE \ | 34 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE \ |
| 35 PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 | 35 PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 |
| 36 | 36 |
| 37 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 \ | 37 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 \ |
| 38 "PPB_OpenGLES2ChromiumMapSub;1.0" | 38 "PPB_OpenGLES2ChromiumMapSub;1.0" |
| 39 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE \ | 39 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE \ |
| 40 PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 | 40 PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 |
| 41 | 41 |
| 42 #define PPB_OPENGLES2_QUERY_INTERFACE_1_0 "PPB_OpenGLES2Query;1.0" | 42 #define PPB_OPENGLES2_QUERY_INTERFACE_1_0 "PPB_OpenGLES2Query;1.0" |
| 43 #define PPB_OPENGLES2_QUERY_INTERFACE PPB_OPENGLES2_QUERY_INTERFACE_1_0 | 43 #define PPB_OPENGLES2_QUERY_INTERFACE PPB_OPENGLES2_QUERY_INTERFACE_1_0 |
| 44 | 44 |
| 45 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0 \ | 45 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0 \ |
| 46 "PPB_OpenGLES2VertexArrayObject;1.0" | 46 "PPB_OpenGLES2VertexArrayObject;1.0" |
| 47 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE \ | 47 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE \ |
| 48 PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0 | 48 PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0 |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * @file | 51 * @file |
| 52 * This file is auto-generated from | 52 * This file is auto-generated from |
| 53 * gpu/command_buffer/build_gles2_cmd_buffer.py | 53 * gpu/command_buffer/build_gles2_cmd_buffer.py |
| 54 * It's formatted by clang-format using chromium coding style: | 54 * It's formatted by clang-format using chromium coding style: |
| 55 * clang-format -i -style=chromium filename | 55 * clang-format -i -style=chromium filename |
| 56 * DO NOT EDIT! */ | 56 * DO NOT EDIT! */ |
| 57 | 57 |
| 58 | |
| 59 #include "ppapi/c/pp_resource.h" | 58 #include "ppapi/c/pp_resource.h" |
| 60 | 59 |
| 61 #ifndef __gl2_h_ | 60 #ifndef __gl2_h_ |
| 62 typedef void GLvoid; | 61 typedef void GLvoid; |
| 63 typedef int GLsizei; | 62 typedef int GLsizei; |
| 64 typedef unsigned short GLushort; | 63 typedef unsigned short GLushort; |
| 65 typedef short GLshort; | 64 typedef short GLshort; |
| 66 typedef unsigned char GLubyte; | 65 typedef unsigned char GLubyte; |
| 67 typedef unsigned int GLenum; | 66 typedef unsigned int GLenum; |
| 68 typedef int GLint; | 67 typedef int GLint; |
| 69 typedef unsigned char GLboolean; | 68 typedef unsigned char GLboolean; |
| 70 typedef unsigned int GLbitfield; | 69 typedef unsigned int GLbitfield; |
| 71 typedef float GLfloat; | 70 typedef float GLfloat; |
| 72 typedef float GLclampf; | 71 typedef float GLclampf; |
| 73 typedef signed char GLbyte; | 72 typedef signed char GLbyte; |
| 74 typedef unsigned int GLuint; | 73 typedef unsigned int GLuint; |
| 75 typedef int GLfixed; | 74 typedef int GLfixed; |
| 76 typedef int GLclampx; | 75 typedef int GLclampx; |
| 77 #ifdef _WIN64 | 76 #ifdef _WIN64 |
| 78 typedef long long int GLintptr; | 77 typedef long long int GLintptr; |
| 79 typedef long long int GLsizeiptr; | 78 typedef long long int GLsizeiptr; |
| 80 #else | 79 #else |
| 81 typedef long int GLintptr; | 80 typedef long int GLintptr; |
| 82 typedef long int GLsizeiptr; | 81 typedef long int GLsizeiptr; |
| 83 #endif // _WIN64 | 82 #endif // _WIN64 |
| 84 #endif // __gl2_h_ | 83 #endif // __gl2_h_ |
| 85 | 84 |
| 86 | |
| 87 /** | 85 /** |
| 88 * @addtogroup Interfaces | 86 * @addtogroup Interfaces |
| 89 * @{ | 87 * @{ |
| 90 */ | 88 */ |
| 91 struct PPB_OpenGLES2_1_0 { | 89 struct PPB_OpenGLES2_1_0 { |
| 92 void (*ActiveTexture)(PP_Resource context, GLenum texture); | 90 void (*ActiveTexture)(PP_Resource context, GLenum texture); |
| 93 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); | 91 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); |
| 94 void (*BindAttribLocation)(PP_Resource context, | 92 void (*BindAttribLocation)(PP_Resource context, |
| 95 GLuint program, | 93 GLuint program, |
| 96 GLuint index, | 94 GLuint index, |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1184 void (*DeleteVertexArraysOES)(PP_Resource context, | 1182 void (*DeleteVertexArraysOES)(PP_Resource context, |
| 1185 GLsizei n, | 1183 GLsizei n, |
| 1186 const GLuint* arrays); | 1184 const GLuint* arrays); |
| 1187 GLboolean (*IsVertexArrayOES)(PP_Resource context, GLuint array); | 1185 GLboolean (*IsVertexArrayOES)(PP_Resource context, GLuint array); |
| 1188 void (*BindVertexArrayOES)(PP_Resource context, GLuint array); | 1186 void (*BindVertexArrayOES)(PP_Resource context, GLuint array); |
| 1189 }; | 1187 }; |
| 1190 /** | 1188 /** |
| 1191 * @} | 1189 * @} |
| 1192 */ | 1190 */ |
| 1193 | 1191 |
| 1194 #endif /* PPAPI_C_PPB_OPENGLES2_H_ */ | 1192 #endif /* PPAPI_C_PPB_OPENGLES2_H_ */ |
| 1195 | |
| OLD | NEW |