| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // and: http://www.khronos.org/opengles/sdk/docs/man/ | 144 // and: http://www.khronos.org/opengles/sdk/docs/man/ |
| 145 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&)
= 0; | 145 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&)
= 0; |
| 146 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&)
= 0; | 146 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&)
= 0; |
| 147 virtual WebString getProgramInfoLog(WebGLId program) = 0; | 147 virtual WebString getProgramInfoLog(WebGLId program) = 0; |
| 148 virtual WebString getShaderInfoLog(WebGLId shader) = 0; | 148 virtual WebString getShaderInfoLog(WebGLId shader) = 0; |
| 149 virtual WebString getShaderSource(WebGLId shader) = 0; | 149 virtual WebString getShaderSource(WebGLId shader) = 0; |
| 150 virtual WebString getString(WGC3Denum name) = 0; | 150 virtual WebString getString(WGC3Denum name) = 0; |
| 151 | 151 |
| 152 virtual void shaderSource(WebGLId shader, const WGC3Dchar* string) = 0; | 152 virtual void shaderSource(WebGLId shader, const WGC3Dchar* string) = 0; |
| 153 | 153 |
| 154 virtual WebGLId createBuffer() = 0; | |
| 155 virtual WebGLId createFramebuffer() = 0; | |
| 156 virtual WebGLId createRenderbuffer() = 0; | |
| 157 virtual WebGLId createTexture() = 0; | |
| 158 | |
| 159 virtual void deleteBuffer(WebGLId) = 0; | |
| 160 virtual void deleteFramebuffer(WebGLId) = 0; | |
| 161 virtual void deleteRenderbuffer(WebGLId) = 0; | |
| 162 virtual void deleteTexture(WebGLId) = 0; | |
| 163 | |
| 164 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback
) { } | 154 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback
) { } |
| 165 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } | 155 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } |
| 166 | 156 |
| 167 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; | 157 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; |
| 168 | 158 |
| 169 // GL_EXT_occlusion_query | |
| 170 virtual WebGLId createQueryEXT() { return 0; } | |
| 171 virtual void deleteQueryEXT(WebGLId query) { } | |
| 172 | |
| 173 // GL_CHROMIUM_subscribe_uniform | |
| 174 virtual WebGLId createValuebufferCHROMIUM() { return 0; } | |
| 175 virtual void deleteValuebufferCHROMIUM(WebGLId) { } | |
| 176 | |
| 177 // GL_EXT_debug_marker | 159 // GL_EXT_debug_marker |
| 178 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker) { } | 160 virtual void pushGroupMarkerEXT(const WGC3Dchar* marker) { } |
| 179 | 161 |
| 180 // GL_OES_vertex_array_object | |
| 181 virtual WebGLId createVertexArrayOES() { return 0; } | |
| 182 virtual void deleteVertexArrayOES(WebGLId array) { } | |
| 183 | |
| 184 // OpenGL ES 3.0 functions not represented by pre-existing extensions | 162 // OpenGL ES 3.0 functions not represented by pre-existing extensions |
| 185 virtual void beginTransformFeedback(WGC3Denum primitiveMode) { } | 163 virtual void beginTransformFeedback(WGC3Denum primitiveMode) { } |
| 186 virtual void bindBufferBase(WGC3Denum target, WGC3Duint index, WebGLId buffe
r) { } | 164 virtual void bindBufferBase(WGC3Denum target, WGC3Duint index, WebGLId buffe
r) { } |
| 187 virtual void bindBufferRange(WGC3Denum target, WGC3Duint index, WebGLId buff
er, WGC3Dintptr offset, WGC3Dsizeiptr size) { } | 165 virtual void bindBufferRange(WGC3Denum target, WGC3Duint index, WebGLId buff
er, WGC3Dintptr offset, WGC3Dsizeiptr size) { } |
| 188 virtual void bindSampler(WGC3Duint unit, WebGLId sampler) { } | 166 virtual void bindSampler(WGC3Duint unit, WebGLId sampler) { } |
| 189 virtual void bindTransformFeedback(WGC3Denum target, WebGLId transformfeedba
ck) { } | 167 virtual void bindTransformFeedback(WGC3Denum target, WebGLId transformfeedba
ck) { } |
| 190 virtual void clearBufferfi(WGC3Denum buffer, WGC3Dint drawbuffer, WGC3Dfloat
depth, WGC3Dint stencil) { } | 168 virtual void clearBufferfi(WGC3Denum buffer, WGC3Dint drawbuffer, WGC3Dfloat
depth, WGC3Dint stencil) { } |
| 191 virtual void clearBufferfv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC3
Dfloat *value) { } | 169 virtual void clearBufferfv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC3
Dfloat *value) { } |
| 192 virtual void clearBufferiv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC3
Dint *value) { } | 170 virtual void clearBufferiv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC3
Dint *value) { } |
| 193 virtual void clearBufferuiv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC
3Duint *value) { } | 171 virtual void clearBufferuiv(WGC3Denum buffer, WGC3Dint drawbuffer, const WGC
3Duint *value) { } |
| 194 virtual void compressedTexImage3D(WGC3Denum target, WGC3Dint level, WGC3Denu
m internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dsizei depth, WGC3Din
t border, WGC3Dsizei imageSize, const void *data) { } | 172 virtual void compressedTexImage3D(WGC3Denum target, WGC3Dint level, WGC3Denu
m internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dsizei depth, WGC3Din
t border, WGC3Dsizei imageSize, const void *data) { } |
| 195 virtual void compressedTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3D
int xoffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dsizei width, WGC3Dsizei he
ight, WGC3Dsizei depth, WGC3Denum format, WGC3Dsizei imageSize, const void *data
) { } | 173 virtual void compressedTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3D
int xoffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dsizei width, WGC3Dsizei he
ight, WGC3Dsizei depth, WGC3Denum format, WGC3Dsizei imageSize, const void *data
) { } |
| 196 virtual void copyBufferSubData(WGC3Denum readTarget, WGC3Denum writeTarget,
WGC3Dintptr readOffset, WGC3Dintptr writeOffset, WGC3Dsizeiptr size) { } | 174 virtual void copyBufferSubData(WGC3Denum readTarget, WGC3Denum writeTarget,
WGC3Dintptr readOffset, WGC3Dintptr writeOffset, WGC3Dsizeiptr size) { } |
| 197 virtual void copyTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3Dint xo
ffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dint x, WGC3Dint y, WGC3Dsizei wi
dth, WGC3Dsizei height) { } | 175 virtual void copyTexSubImage3D(WGC3Denum target, WGC3Dint level, WGC3Dint xo
ffset, WGC3Dint yoffset, WGC3Dint zoffset, WGC3Dint x, WGC3Dint y, WGC3Dsizei wi
dth, WGC3Dsizei height) { } |
| 198 virtual WebGLId createSampler() { return 0; } | |
| 199 virtual WebGLId createTransformFeedback() { return 0; } | |
| 200 virtual void deleteSampler(WebGLId sampler) { } | |
| 201 virtual void deleteTransformFeedback(WebGLId transformfeedback) { } | |
| 202 virtual void endTransformFeedback(void) { } | 176 virtual void endTransformFeedback(void) { } |
| 203 virtual void getActiveUniformBlockName(WebGLId program, WGC3Duint uniformBlo
ckIndex, WGC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dchar *uniformBlockName) {
} | 177 virtual void getActiveUniformBlockName(WebGLId program, WGC3Duint uniformBlo
ckIndex, WGC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dchar *uniformBlockName) {
} |
| 204 virtual void getActiveUniformBlockiv(WebGLId program, WGC3Duint uniformBlock
Index, WGC3Denum pname, WGC3Dint *params) { } | 178 virtual void getActiveUniformBlockiv(WebGLId program, WGC3Duint uniformBlock
Index, WGC3Denum pname, WGC3Dint *params) { } |
| 205 virtual void getActiveUniformsiv(WebGLId program, WGC3Dsizei uniformCount, c
onst WGC3Duint *uniformIndices, WGC3Denum pname, WGC3Dint *params) { } | 179 virtual void getActiveUniformsiv(WebGLId program, WGC3Dsizei uniformCount, c
onst WGC3Duint *uniformIndices, WGC3Denum pname, WGC3Dint *params) { } |
| 206 virtual void getBufferParameteri64v(WGC3Denum target, WGC3Denum pname, WGC3D
int64 *value) { } | 180 virtual void getBufferParameteri64v(WGC3Denum target, WGC3Denum pname, WGC3D
int64 *value) { } |
| 207 virtual WGC3Dint getFragDataLocation(WebGLId program, const WGC3Dchar *name)
{ return -1; } | 181 virtual WGC3Dint getFragDataLocation(WebGLId program, const WGC3Dchar *name)
{ return -1; } |
| 208 virtual void getInternalformativ(WGC3Denum target, WGC3Denum internalformat,
WGC3Denum pname, WGC3Dsizei bufSize, WGC3Dint *params) { } | 182 virtual void getInternalformativ(WGC3Denum target, WGC3Denum internalformat,
WGC3Denum pname, WGC3Dsizei bufSize, WGC3Dint *params) { } |
| 209 virtual void getSamplerParameterfv(WebGLId sampler, WGC3Denum pname, WGC3Dfl
oat *params) { } | 183 virtual void getSamplerParameterfv(WebGLId sampler, WGC3Denum pname, WGC3Dfl
oat *params) { } |
| 210 virtual void getSamplerParameteriv(WebGLId sampler, WGC3Denum pname, WGC3Din
t *params) { } | 184 virtual void getSamplerParameteriv(WebGLId sampler, WGC3Denum pname, WGC3Din
t *params) { } |
| 211 virtual void getTransformFeedbackVarying(WebGLId program, WGC3Duint index, W
GC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dsizei *size, WGC3Denum *type, WGC3Dc
har *name) { } | 185 virtual void getTransformFeedbackVarying(WebGLId program, WGC3Duint index, W
GC3Dsizei bufSize, WGC3Dsizei *length, WGC3Dsizei *size, WGC3Denum *type, WGC3Dc
har *name) { } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 228 virtual void transformFeedbackVaryings(WebGLId program, WGC3Dsizei count, co
nst WGC3Dchar *const*varyings, WGC3Denum bufferMode) { } | 202 virtual void transformFeedbackVaryings(WebGLId program, WGC3Dsizei count, co
nst WGC3Dchar *const*varyings, WGC3Denum bufferMode) { } |
| 229 virtual WGC3Dboolean unmapBuffer(WGC3Denum target) { return false; } | 203 virtual WGC3Dboolean unmapBuffer(WGC3Denum target) { return false; } |
| 230 | 204 |
| 231 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
ble, and avoid using WebGraphicsContext3D at all. | 205 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
ble, and avoid using WebGraphicsContext3D at all. |
| 232 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; | 206 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; |
| 233 }; | 207 }; |
| 234 | 208 |
| 235 } // namespace blink | 209 } // namespace blink |
| 236 | 210 |
| 237 #endif | 211 #endif |
| OLD | NEW |