Chromium Code Reviews| Index: ppapi/c/ppb_opengles2.h |
| diff --git a/ppapi/c/ppb_opengles2.h b/ppapi/c/ppb_opengles2.h |
| index ec3204aea23b288153efff0983b27e4f5ae0a4f3..b4dc027d1c4c8fcba3eb1713bde7bedc7533e59c 100644 |
| --- a/ppapi/c/ppb_opengles2.h |
| +++ b/ppapi/c/ppb_opengles2.h |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -302,5 +302,60 @@ struct PPB_OpenGLES2 { |
| PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); |
| }; |
| +#define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 "PPB_OpenGLES2InstancedArrays;1.0" // NOLINT |
| +#define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 // NOLINT |
| + |
| +struct PPB_OpenGLES2InstancedArrays { |
| + void (*DrawArraysInstancedANGLE)( |
| + PP_Resource context, GLenum mode, GLint first, GLsizei count, |
| + GLsizei primcount); |
| + void (*DrawElementsInstancedANGLE)( |
| + PP_Resource context, GLenum mode, GLsizei count, GLenum type, |
| + const void* indices, GLsizei primcount); |
| + void (*VertexAttribDivisorANGLE)( |
| + PP_Resource context, GLuint index, GLuint divisor); |
| +}; |
| + |
| +#define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 "PPB_OpenGLES2FramebufferBlit;1.0" // NOLINT |
| +#define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 // NOLINT |
| + |
| +struct PPB_OpenGLES2FramebufferBlit { |
| + void (*BlitFramebufferEXT)( |
| + PP_Resource context, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, |
| + GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, |
| + GLenum filter); |
| +}; |
| + |
| +#define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 "PPB_OpenGLES2FramebufferMultisample;1.0" // NOLINT |
| +#define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 // NOLINT |
| + |
| +struct PPB_OpenGLES2FramebufferMultisample { |
| + void (*RenderbufferStorageMultisampleEXT)( |
| + PP_Resource context, GLenum target, GLsizei samples, |
| + GLenum internalformat, GLsizei width, GLsizei height); |
| +}; |
| + |
| +#define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 "PPB_OpenGLES2ChromiumEnableFeature;1.0" // NOLINT |
| +#define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 // NOLINT |
| + |
| +struct PPB_OpenGLES2ChromiumEnableFeature { |
| + GLboolean (*EnableFeatureCHROMIUM)(PP_Resource context, const char* feature); |
| +}; |
| + |
| +#define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 "PPB_OpenGLES2ChromiumMapSub;1.0" // NOLINT |
| +#define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 // NOLINT |
| + |
| +struct PPB_OpenGLES2ChromiumMapSub { |
| + void* (*MapBufferSubDataCHROMIUM)( |
| + PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size, |
| + GLenum access); |
| + void (*UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void* mem); |
| + void* (*MapTexSubImage2DCHROMIUM)( |
|
nfullagar
2012/02/16 23:25:43
If MapTexSubImage2DCHROMIUM is moving here, this C
|
| + PP_Resource context, GLenum target, GLint level, GLint xoffset, |
| + GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, |
| + GLenum access); |
| + void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem); |
|
nfullagar
2012/02/16 23:25:43
Traditionally new PPAPI interfaces would hang out
|
| +}; |
| + |
| #endif // PPAPI_C_PPB_OPENGLES2_H_ |