The WebGLRenderingContext.pixelStorei() method of the WebGL API specifies the pixel storage modes.
WebGLRenderingContext.pixelStorei()
external void pixelStorei( GLenum pname, GLint param, );