Lines Matching refs:functionName

1036 bool WebGLRenderingContext::checkObjectToBeBound(const char* functionName, WebGLObject* object, bool& deleted)
1043 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "object not from this context");
1432 bool WebGLRenderingContext::validateSettableTexFormat(const char* functionName, GC3Denum format)
1435 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "format can not be set, only rendered to");
1758 bool WebGLRenderingContext::validateWebGLObject(const char* functionName, WebGLObject* object)
1761 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no object or object deleted");
1765 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "object does not belong to this context");
3279 bool WebGLRenderingContext::validateTexFunc(const char* functionName, TexFuncValidationFunctionType functionType, TexFuncValidationSourceType sourceType, GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height, GC3Dint border, GC3Denum format, GC3Denum type, GC3Dint xoffset, GC3Dint yoffset)
3281 if (!validateTexFuncParameters(functionName, functionType, target, level, internalformat, width, height, border, format, type))
3284 WebGLTexture* texture = validateTextureBinding(functionName, target, true);
3290 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "level > 0 not power of 2");
3296 if (!validateSettableTexFormat(functionName, format))
3300 if (!validateSettableTexFormat(functionName, format))
3302 if (!validateSize(functionName, xoffset, yoffset))
3306 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "bad dimensions");
3310 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "dimensions out of range");
3314 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "type and format do not match texture");
4275 void WebGLRenderingContext::handleTextureCompleteness(const char* functionName, bool prepareToDraw)
4297 emitGLWarning(functionName, msg.utf8().data());
4371 WebGLTexture* WebGLRenderingContext::validateTextureBinding(const char* functionName, GC3Denum target, bool useSixEnumsForCubeMap)
4385 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture target");
4392 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture target");
4398 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture target");
4402 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "no texture");
4406 bool WebGLRenderingContext::validateLocationLength(const char* functionName, const String& string)
4410 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "location length > 256");
4416 bool WebGLRenderingContext::validateSize(const char* functionName, GC3Dint x, GC3Dint y)
4419 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "size < 0");
4425 bool WebGLRenderingContext::validateString(const char* functionName, const String& string)
4429 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "string not ASCII");
4436 bool WebGLRenderingContext::validateTexFuncFormatAndType(const char* functionName, GC3Denum format, GC3Denum type, GC3Dint level)
4449 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "depth texture formats not enabled");
4452 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture format");
4465 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture type");
4470 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture type");
4477 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture type");
4480 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid texture type");
4492 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "invalid type for format");
4501 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "invalid type for RGB format");
4511 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "invalid type for RGBA format");
4517 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid format. DEPTH_COMPONENT not enabled");
4522 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "invalid type for DEPTH_COMPONENT format");
4526 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "level must be 0 for DEPTH_COMPONENT format");
4532 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid format. DEPTH_STENCIL not enabled");
4536 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "invalid type for DEPTH_STENCIL format");
4540 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "level must be 0 for DEPTH_STENCIL format");
4551 bool WebGLRenderingContext::validateTexFuncLevel(const char* functionName, GC3Denum target, GC3Dint level)
4554 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "level < 0");
4560 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "level out of range");
4571 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "level out of range");
4581 bool WebGLRenderingContext::validateTexFuncParameters(const char* functionName,
4591 if (!validateTexFuncFormatAndType(functionName, format, type, level) || !validateTexFuncLevel(functionName, target, level))
4595 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "width or height < 0");
4602 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "width or height out of range");
4613 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "width != height for cube map");
4619 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "width or height out of range for cube map");
4624 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid target");
4629 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "format != internalformat");
4634 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "border != 0");
4641 bool WebGLRenderingContext::validateTexFuncData(const char* functionName, GC3Dint level,
4651 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no pixels");
4655 if (!validateTexFuncFormatAndType(functionName, format, type, level))
4657 if (!validateSettableTexFormat(functionName, format))
4663 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "type UNSIGNED_BYTE but ArrayBufferView not Uint8Array");
4671 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "type UNSIGNED_SHORT but ArrayBufferView not Uint16Array");
4677 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "type FLOAT but ArrayBufferView not Float32Array");
4685 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "type HALF_FLOAT_OES but ArrayBufferView is not NULL");
4696 synthesizeGLError(error, functionName, "invalid texture dimensions");
4703 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "ArrayBufferView not big enough for request with UNPACK_ALIGNMENT > 1");
4707 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "ArrayBufferView not big enough for request");
4718 bool WebGLRenderingContext::validateCompressedTexFuncData(const char* functionName,
4723 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no pixels");
4727 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "width or height < 0");
4781 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid format");
4786 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "length of ArrayBufferView is not correct for dimensions");
4793 bool WebGLRenderingContext::validateCompressedTexDimensions(const char* functionName, GC3Dint level, GC3Dsizei width, GC3Dsizei height, GC3Denum format)
4805 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "width or height invalid for level");
4815 bool WebGLRenderingContext::validateCompressedTexSubDimensions(const char* functionName, GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset,
4819 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "xoffset or yoffset < 0");
4831 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "xoffset or yoffset not multiple of 4");
4836 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "dimensions out of range");
4839 return validateCompressedTexDimensions(functionName, level, width, height, format);
4846 bool WebGLRenderingContext::validateDrawMode(const char* functionName, GC3Denum mode)
4858 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid draw mode");
4863 bool WebGLRenderingContext::validateStencilSettings(const char* functionName)
4866 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "front and back stencils settings do not match");
4872 bool WebGLRenderingContext::validateStencilOrDepthFunc(const char* functionName, GC3Denum func)
4885 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid function");
4914 bool WebGLRenderingContext::validateFramebufferFuncParameters(const char* functionName, GC3Denum target, GC3Denum attachment)
4917 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid target");
4931 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid attachment");
4937 bool WebGLRenderingContext::validateBlendEquation(const char* functionName, GC3Denum mode)
4945 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid mode");
4950 bool WebGLRenderingContext::validateBlendFuncFactors(const char* functionName, GC3Denum src, GC3Denum dst)
4956 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "incompatible src and dst");
4962 bool WebGLRenderingContext::validateCapability(const char* functionName, GC3Denum cap)
4976 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid capability");
4981 bool WebGLRenderingContext::validateUniformParameters(const char* functionName, const WebGLUniformLocation* location, Float32Array* v, GC3Dsizei requiredMinSize)
4984 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
4987 return validateUniformMatrixParameters(functionName, location, false, v->data(), v->length(), requiredMinSize);
4990 bool WebGLRenderingContext::validateUniformParameters(const char* functionName, const WebGLUniformLocation* location, Int32Array* v, GC3Dsizei requiredMinSize)
4993 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
4996 return validateUniformMatrixParameters(functionName, location, false, v->data(), v->length(), requiredMinSize);
4999 bool WebGLRenderingContext::validateUniformParameters(const char* functionName, const WebGLUniformLocation* location, void* v, GC3Dsizei size, GC3Dsizei requiredMinSize)
5001 return validateUniformMatrixParameters(functionName, location, false, v, size, requiredMinSize);
5004 bool WebGLRenderingContext::validateUniformMatrixParameters(const char* functionName, const WebGLUniformLocation* location, GC3Dboolean transpose, Float32Array* v, GC3Dsizei requiredMinSize)
5007 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
5010 return validateUniformMatrixParameters(functionName, location, transpose, v->data(), v->length(), requiredMinSize);
5013 bool WebGLRenderingContext::validateUniformMatrixParameters(const char* functionName, const WebGLUniformLocation* location, GC3Dboolean transpose, void* v, GC3Dsizei size, GC3Dsizei requiredMinSize)
5018 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "location is not from current program");
5022 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
5026 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "transpose not FALSE");
5030 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "invalid size");
5036 WebGLBuffer* WebGLRenderingContext::validateBufferDataParameters(const char* functionName, GC3Denum target, GC3Denum usage)
5047 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid target");
5051 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "no buffer");
5060 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid usage");
5064 bool WebGLRenderingContext::validateHTMLImageElement(const char* functionName, HTMLImageElement* image, ExceptionState& es)
5067 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no image");
5072 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "invalid image");
5082 bool WebGLRenderingContext::validateHTMLCanvasElement(const char* functionName, HTMLCanvasElement* canvas, ExceptionState& es)
5085 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no canvas");
5095 bool WebGLRenderingContext::validateHTMLVideoElement(const char* functionName, HTMLVideoElement* video, ExceptionState& es)
5098 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no video");
5108 bool WebGLRenderingContext::validateDrawArrays(const char* functionName, GC3Denum mode, GC3Dint first, GC3Dsizei count)
5110 if (isContextLost() || !validateDrawMode(functionName, mode))
5113 if (!validateStencilSettings(functionName))
5117 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "first or count < 0");
5127 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "attribs not setup correctly");
5133 synthesizeGLError(GraphicsContext3D::INVALID_FRAMEBUFFER_OPERATION, functionName, reason);
5140 bool WebGLRenderingContext::validateDrawElements(const char* functionName, GC3Denum mode, GC3Dsizei count, GC3Denum type, long long offset)
5142 if (isContextLost() || !validateDrawMode(functionName, mode))
5145 if (!validateStencilSettings(functionName))
5155 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid type");
5158 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, functionName, "invalid type");
5163 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "count or offset < 0");
5173 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "no ELEMENT_ARRAY_BUFFER bound");
5178 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "attribs not setup correctly");
5184 synthesizeGLError(GraphicsContext3D::INVALID_FRAMEBUFFER_OPERATION, functionName, reason);
5192 bool WebGLRenderingContext::validateDrawInstanced(const char* functionName, GC3Dsizei primcount)
5195 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "primcount < 0");
5206 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, functionName, "at least one enabled attribute must have a divisor of 0");
5210 void WebGLRenderingContext::vertexAttribfImpl(const char* functionName, GC3Duint index, GC3Dsizei expectedSize, GC3Dfloat v0, GC3Dfloat v1, GC3Dfloat v2, GC3Dfloat v3)
5215 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "index out of range");
5240 void WebGLRenderingContext::vertexAttribfvImpl(const char* functionName, GC3Duint index, Float32Array* v, GC3Dsizei expectedSize)
5245 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
5248 vertexAttribfvImpl(functionName, index, v->data(), v->length(), expectedSize);
5251 void WebGLRenderingContext::vertexAttribfvImpl(const char* functionName, GC3Duint index, GC3Dfloat* v, GC3Dsizei size, GC3Dsizei expectedSize)
5256 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "no array");
5260 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "invalid size");
5264 synthesizeGLError(GraphicsContext3D::INVALID_VALUE, functionName, "index out of range");
5426 void WebGLRenderingContext::synthesizeGLError(GC3Denum error, const char* functionName, const char* description, ConsoleDisplayPreference display)
5430 String message = String("WebGL: ") + errorType + ": " + String(functionName) + ": " + String(description);
5442 void WebGLRenderingContext::emitGLWarning(const char* functionName, const char* description)
5445 String message = String("WebGL: ") + String(functionName) + ": " + String(description);