aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/GLVertexAttributesBench.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-10-01 09:43:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-01 09:43:39 -0700
commita1ebeb25e9acfcd801e089e063311d716b83b8a5 (patch)
tree1ac61bbbb5700af13c511b3525822d9d602968ea /bench/GLVertexAttributesBench.cpp
parentaa48d36397f8464dafd38c3f42fbdfb1419e8778 (diff)
Remove const from `const int loops`.
This drives me nuts, and prevents `while (loops --> 0)`. BUG=skia: Review URL: https://codereview.chromium.org/1379923005
Diffstat (limited to 'bench/GLVertexAttributesBench.cpp')
-rw-r--r--bench/GLVertexAttributesBench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/GLVertexAttributesBench.cpp b/bench/GLVertexAttributesBench.cpp
index f55fb6545f..6a4ccf5063 100644
--- a/bench/GLVertexAttributesBench.cpp
+++ b/bench/GLVertexAttributesBench.cpp
@@ -36,7 +36,7 @@ public:
protected:
const char* onGetName() override { return fName.c_str(); }
void setup(const GrGLContext*) override;
- void glDraw(const int loops, const GrGLContext*) override;
+ void glDraw(int loops, const GrGLContext*) override;
void teardown(const GrGLInterface*) override;
static const GrGLuint kScreenWidth = 800;
@@ -207,7 +207,7 @@ void GLVertexAttributesBench::setup(const GrGLContext* ctx) {
GR_GL_CALL(gl, UseProgram(fProgram));
}
-void GLVertexAttributesBench::glDraw(const int loops, const GrGLContext* ctx) {
+void GLVertexAttributesBench::glDraw(int loops, const GrGLContext* ctx) {
const GrGLInterface* gl = ctx->interface();
// upload vertex attributes