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

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

Issue 1783743002: [WebGL] a bunch of small fixes: unnecessary arguments, typos... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index db8d8d527f334c7b340a41efa2b68bef92c010ee..fd36b3e1cafaed3357fe408766b2d9310cfee45f 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -2102,7 +2102,7 @@ bool WebGLRenderingContextBase::validateWebGLObject(const char* functionName, We
void WebGLRenderingContextBase::drawArrays(GLenum mode, GLint first, GLsizei count)
{
- if (!validateDrawArrays("drawArrays", mode, first, count))
+ if (!validateDrawArrays("drawArrays"))
return;
clearIfComposited();
@@ -2112,7 +2112,7 @@ void WebGLRenderingContextBase::drawArrays(GLenum mode, GLint first, GLsizei cou
void WebGLRenderingContextBase::drawElements(GLenum mode, GLsizei count, GLenum type, long long offset)
{
- if (!validateDrawElements("drawElements", mode, count, type, offset))
+ if (!validateDrawElements("drawElements", type, offset))
return;
if (transformFeedbackActive() && !transformFeedbackPaused()) {
@@ -2127,7 +2127,7 @@ void WebGLRenderingContextBase::drawElements(GLenum mode, GLsizei count, GLenum
void WebGLRenderingContextBase::drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount)
{
- if (!validateDrawArrays("drawArraysInstancedANGLE", mode, first, count))
+ if (!validateDrawArrays("drawArraysInstancedANGLE"))
return;
clearIfComposited();
@@ -2137,7 +2137,7 @@ void WebGLRenderingContextBase::drawArraysInstancedANGLE(GLenum mode, GLint firs
void WebGLRenderingContextBase::drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, long long offset, GLsizei primcount)
{
- if (!validateDrawElements("drawElementsInstancedANGLE", mode, count, type, offset))
+ if (!validateDrawElements("drawElementsInstancedANGLE", type, offset))
return;
clearIfComposited();
@@ -5846,7 +5846,7 @@ bool WebGLRenderingContextBase::validateImageBitmap(const char* functionName, Im
return true;
}
-bool WebGLRenderingContextBase::validateDrawArrays(const char* functionName, GLenum mode, GLint first, GLsizei count)
+bool WebGLRenderingContextBase::validateDrawArrays(const char* functionName)
{
if (isContextLost())
return false;
@@ -5867,7 +5867,7 @@ bool WebGLRenderingContextBase::validateDrawArrays(const char* functionName, GLe
return true;
}
-bool WebGLRenderingContextBase::validateDrawElements(const char* functionName, GLenum mode, GLsizei count, GLenum type, long long offset)
+bool WebGLRenderingContextBase::validateDrawElements(const char* functionName, GLenum type, long long offset)
{
if (isContextLost())
return false;
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698