Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1139)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 1824433002: Remove getError() and synthesizeGLError() from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: errors: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index 543953aa053b03b8e643531067b10e77faf489f3..2919fe525e3c0a0835c9fd8a038b1433563a667e 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -2289,7 +2289,7 @@ WebGLActiveInfo* WebGL2RenderingContextBase::getTransformFeedbackVarying(WebGLPr
if (isContextLost() || !validateWebGLObject("getTransformFeedbackVarying", program))
return nullptr;
- if (!program->linkStatus()) {
+ if (!program->linkStatus(this)) {
synthesizeGLError(GL_INVALID_OPERATION, "getTransformFeedbackVarying", "program not linked");
return nullptr;
}
@@ -2583,7 +2583,7 @@ GLuint WebGL2RenderingContextBase::getUniformBlockIndex(WebGLProgram* program, c
bool WebGL2RenderingContextBase::validateUniformBlockIndex(const char* functionName, WebGLProgram* program, GLuint blockIndex)
{
ASSERT(program);
- if (!program->linkStatus()) {
+ if (!program->linkStatus(this)) {
synthesizeGLError(GL_INVALID_OPERATION, functionName, "program not linked");
return false;
}
@@ -2707,7 +2707,7 @@ void WebGL2RenderingContextBase::bindVertexArray(ScriptState* scriptState, WebGL
return;
if (vertexArray && (vertexArray->isDeleted() || !vertexArray->validate(0, this))) {
- webContext()->synthesizeGLError(GL_INVALID_OPERATION);
+ synthesizeGLError(GL_INVALID_OPERATION, "bindVertexArray", "invalid vertexArray");
return;
}

Powered by Google App Engine
This is Rietveld 408576698