mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=576086; Remove sizeInBytes from WebGL; r=vladimir
This commit is contained in:
parent
22cf5106de
commit
df50b21008
@ -125,21 +125,6 @@ WebGLContext::Present()
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* long sizeInBytes (in GLenum type); */
|
||||
NS_IMETHODIMP
|
||||
WebGLContext::SizeInBytes(WebGLenum type, PRInt32 *retval)
|
||||
{
|
||||
if (type == LOCAL_GL_FLOAT) *retval = sizeof(float);
|
||||
if (type == LOCAL_GL_SHORT) *retval = sizeof(short);
|
||||
if (type == LOCAL_GL_UNSIGNED_SHORT) *retval = sizeof(unsigned short);
|
||||
if (type == LOCAL_GL_BYTE) *retval = 1;
|
||||
if (type == LOCAL_GL_UNSIGNED_BYTE) *retval = 1;
|
||||
if (type == LOCAL_GL_INT) *retval = sizeof(int);
|
||||
if (type == LOCAL_GL_UNSIGNED_INT) *retval = sizeof(unsigned int);
|
||||
if (type == LOCAL_GL_DOUBLE) *retval = sizeof(double);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void GlActiveTexture (in GLenum texture); */
|
||||
NS_IMETHODIMP
|
||||
WebGLContext::ActiveTexture(WebGLenum texture)
|
||||
|
@ -580,7 +580,6 @@ interface nsICanvasRenderingContextWebGL : nsISupports
|
||||
// METHODS
|
||||
//
|
||||
void present();
|
||||
long sizeInBytes(in WebGLenum type);
|
||||
|
||||
void activeTexture(in WebGLenum texture);
|
||||
void attachShader(in nsIWebGLProgram program, in nsIWebGLShader shader);
|
||||
|
Loading…
Reference in New Issue
Block a user