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

Unified Diff: gpu/command_buffer/tests/gl_iosurface_readback_workaround_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_iosurface_readback_workaround_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc b/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
index ea052f0ae94b817b6ca1aecdb20fffcfa53a11e5..ab176e97111ef0508118b8b7f99ad36c8cc335c7 100644
--- a/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
+++ b/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
@@ -67,14 +67,14 @@ TEST_F(GLIOSurfaceReadbackWorkaroundTest, ReadPixels) {
glClearColor(33.0 / 255.0, 44.0 / 255.0, 55.0 / 255.0, 66.0 / 255.0);
glClear(GL_COLOR_BUFFER_BIT);
const uint8_t expected[4] = {33, 44, 55, 66};
- EXPECT_TRUE(
- GLTestHelper::CheckPixels(0, 0, 1, 1, 1 /* tolerance */, expected));
+ EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 1 /* tolerance */, expected,
+ nullptr));
glClearColor(14.0 / 255.0, 15.0 / 255.0, 16.0 / 255.0, 17.0 / 255.0);
glClear(GL_COLOR_BUFFER_BIT);
const uint8_t expected2[4] = {14, 15, 16, 17};
- EXPECT_TRUE(
- GLTestHelper::CheckPixels(0, 0, 1, 1, 1 /* tolerance */, expected2));
+ EXPECT_TRUE(GLTestHelper::CheckPixels(0, 0, 1, 1, 1 /* tolerance */,
+ expected2, nullptr));
glReleaseTexImage2DCHROMIUM(source_target, image_id);
glDestroyImageCHROMIUM(image_id);

Powered by Google App Engine
This is Rietveld 408576698