Commit 62300122 by Jamie Madill

Fix size_t convesion warning in angle_perftests.

BUG=angleproject:1669 Change-Id: I24e5e3d04189aff662ad7ce57498efcb820ee467 Reviewed-on: https://chromium-review.googlesource.com/424854Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 2d676313
...@@ -46,9 +46,9 @@ const char *SimpleFragmentShaderSource() ...@@ -46,9 +46,9 @@ const char *SimpleFragmentShaderSource()
// clang-format on // clang-format on
} }
void Generate2DTriangleData(int numTris, std::vector<float> *floatData) void Generate2DTriangleData(size_t numTris, std::vector<float> *floatData)
{ {
for (int triIndex = 0; triIndex < numTris; ++triIndex) for (size_t triIndex = 0; triIndex < numTris; ++triIndex)
{ {
floatData->push_back(1.0f); floatData->push_back(1.0f);
floatData->push_back(2.0f); floatData->push_back(2.0f);
...@@ -84,7 +84,7 @@ GLuint SetupSimpleScaleAndOffsetProgram() ...@@ -84,7 +84,7 @@ GLuint SetupSimpleScaleAndOffsetProgram()
return program; return program;
} }
GLuint Create2DTriangleBuffer(int numTris, GLenum usage) GLuint Create2DTriangleBuffer(size_t numTris, GLenum usage)
{ {
GLuint buffer = 0u; GLuint buffer = 0u;
glGenBuffers(1, &buffer); glGenBuffers(1, &buffer);
......
...@@ -22,7 +22,7 @@ GLuint SetupSimpleScaleAndOffsetProgram(); ...@@ -22,7 +22,7 @@ GLuint SetupSimpleScaleAndOffsetProgram();
// / \ // / \
// / \ // / \
// B-----C // B-----C
GLuint Create2DTriangleBuffer(int numTris, GLenum usage); GLuint Create2DTriangleBuffer(size_t numTris, GLenum usage);
// Creates an FBO with a texture color attachment. The texture is GL_RGBA and has dimensions // Creates an FBO with a texture color attachment. The texture is GL_RGBA and has dimensions
// width/height. The FBO and texture ids are written to the out parameters. // width/height. The FBO and texture ids are written to the out parameters.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment