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

Unified Diff: gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc

Issue 2602563002: Refactor DrawTextureQuad and CheckPixels in gl_tests util (Closed)
Patch Set: rebase only Created 3 years, 12 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
Index: gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc b/gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc
index 8856500348f0dca67f3b8cffb7257480e8111999..7c02aded0f61606d50dbbcb597e109fce7cdc9e0 100644
--- a/gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc
+++ b/gpu/command_buffer/tests/gl_bind_uniform_location_unittest.cc
@@ -95,8 +95,8 @@ TEST_P(BindUniformLocationTest, Basic) {
glDrawArrays(GL_TRIANGLES, 0, 6);
static const uint8_t expected[] = {64, 128, 192, 255};
- EXPECT_TRUE(
- GLTestHelper::CheckPixels(0, 0, kResolution, kResolution, 1, expected));
+ EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kResolution, kResolution, 1,
+ expected, nullptr));
GLTestHelper::CheckGLError("no errors", __LINE__);
}
@@ -262,8 +262,8 @@ TEST_P(BindUniformLocationTest, Compositor) {
glDrawArrays(GL_TRIANGLES, 0, 6);
static const uint8_t expected[] = {204, 204, 204, 204};
- EXPECT_TRUE(
- GLTestHelper::CheckPixels(0, 0, kResolution, kResolution, 1, expected));
+ EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, kResolution, kResolution, 1,
+ expected, nullptr));
GLTestHelper::CheckGLError("no errors", __LINE__);

Powered by Google App Engine
This is Rietveld 408576698