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

Unified Diff: gpu/command_buffer/tests/gl_test_utils.h

Issue 12542009: Revert "Revert 186416" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « gpu/command_buffer/tests/gl_stream_draw_unittests.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_test_utils.h
diff --git a/gpu/command_buffer/tests/gl_test_utils.h b/gpu/command_buffer/tests/gl_test_utils.h
index 31de7cdb6ae6cb5d28ccdfcea0213b2551885e38..972ea0af4064f172033c4a322edb229edc7b820d 100644
--- a/gpu/command_buffer/tests/gl_test_utils.h
+++ b/gpu/command_buffer/tests/gl_test_utils.h
@@ -35,6 +35,11 @@ class GLTestHelper {
// Returns the created buffer.
static GLuint SetupUnitQuad(GLint position_location);
+ // Make a 6 vertex colors.
+ // Returns the created buffer.
+ static GLuint SetupColorsForUnitQuad(
+ GLint location, const GLfloat color[4], GLenum usage);
+
// Checks an area of pixels for a color.
static bool CheckPixels(
GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
« no previous file with comments | « gpu/command_buffer/tests/gl_stream_draw_unittests.cc ('k') | gpu/command_buffer/tests/gl_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698