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

Side by Side Diff: gpu/command_buffer/tests/gl_program_unittest.cc

Issue 1558633002: Cleanup: Remove double semicolons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert CP code to a while loop, fix nit Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 #include <GLES2/gl2extchromium.h> 7 #include <GLES2/gl2extchromium.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "gpu/command_buffer/service/context_group.h" 10 #include "gpu/command_buffer/service/context_group.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void main() 170 void main()
171 { 171 {
172 gl_Position = a_position; 172 gl_Position = a_position;
173 } 173 }
174 ); 174 );
175 static const char* f_shader_str = SHADER( 175 static const char* f_shader_str = SHADER(
176 precision mediump float; 176 precision mediump float;
177 uniform vec4 u_color; 177 uniform vec4 u_color;
178 void main() 178 void main()
179 { 179 {
180 gl_FragColor = u_color;; 180 gl_FragColor = u_color;
181 } 181 }
182 ); 182 );
183 183
184 // Load the program. 184 // Load the program.
185 GLuint program = GLTestHelper::LoadProgram(v_shader_str, f_shader_str); 185 GLuint program = GLTestHelper::LoadProgram(v_shader_str, f_shader_str);
186 glUseProgram(program); 186 glUseProgram(program);
187 187
188 // Relink. 188 // Relink.
189 glLinkProgram(program); 189 glLinkProgram(program);
190 190
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 glLinkProgram(program); 277 glLinkProgram(program);
278 278
279 GLint linked = 0; 279 GLint linked = 0;
280 glGetProgramiv(program, GL_LINK_STATUS, &linked); 280 glGetProgramiv(program, GL_LINK_STATUS, &linked);
281 EXPECT_NE(0, linked); 281 EXPECT_NE(0, linked);
282 } 282 }
283 283
284 } // namespace gpu 284 } // namespace gpu
285 285
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698