Apply clang-format to many files.
This cleans up the formatting in many places.
BUG=None
Change-Id: I6c6652ebc042f1f0ffecced53582d09d66b4f384
Reviewed-on: https://chromium-review.googlesource.com/487884
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/src/tests/gl_tests/IndexBufferOffsetTest.cpp b/src/tests/gl_tests/IndexBufferOffsetTest.cpp
index 6a85453..329848a 100644
--- a/src/tests/gl_tests/IndexBufferOffsetTest.cpp
+++ b/src/tests/gl_tests/IndexBufferOffsetTest.cpp
@@ -6,8 +6,8 @@
// IndexBufferOffsetTest.cpp: Test glDrawElements with an offset and an index buffer
-#include "test_utils/ANGLETest.h"
#include "system_utils.h"
+#include "test_utils/ANGLETest.h"
using namespace angle;
@@ -31,18 +31,12 @@
const std::string vertexShaderSource =
SHADER_SOURCE(precision highp float; attribute vec2 position;
- void main()
- {
- gl_Position = vec4(position, 0.0, 1.0);
- });
+ void main() { gl_Position = vec4(position, 0.0, 1.0); });
const std::string fragmentShaderSource =
SHADER_SOURCE(precision highp float; uniform vec4 color;
- void main()
- {
- gl_FragColor = color;
- });
+ void main() { gl_FragColor = color; });
mProgram = CompileProgram(vertexShaderSource, fragmentShaderSource);
ASSERT_NE(0u, mProgram);
@@ -50,13 +44,7 @@
mColorUniformLocation = glGetUniformLocation(mProgram, "color");
mPositionAttributeLocation = glGetAttribLocation(mProgram, "position");
- const GLfloat vertices[] =
- {
- -1.0f, -1.0f,
- -1.0f, 1.0f,
- 1.0f, -1.0f,
- 1.0f, 1.0f
- };
+ const GLfloat vertices[] = {-1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f};
glGenBuffers(1, &mVertexBuffer);
glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), &vertices[0], GL_STATIC_DRAW);
@@ -138,7 +126,8 @@
{
if (getClientMajorVersion() < 3 && !extensionEnabled("GL_OES_element_index_uint"))
{
- std::cout << "Test skipped because ES3 or GL_OES_element_index_uint is not available." << std::endl;
+ std::cout << "Test skipped because ES3 or GL_OES_element_index_uint is not available."
+ << std::endl;
return;
}