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 2410343002: [Reland] Add gl tests to make sure when a buffer is unmapped, all access path generates an INVALID_… (Closed)
Patch Set: Skip the test if context creation fails. Created 4 years, 2 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_program_unittest.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 e2f88f5c2022b0d70c8e40b4638401af7f7c8c60..d4292248285766b79cac5febb3d9f2cd8572fee6 100644
--- a/gpu/command_buffer/tests/gl_test_utils.h
+++ b/gpu/command_buffer/tests/gl_test_utils.h
@@ -10,6 +10,8 @@
#include <GLES2/gl2.h>
#include <stdint.h>
+#include <vector>
+
namespace gfx {
class Size;
} // namespace gfx
@@ -47,6 +49,10 @@ class GLTestHelper {
// Returns the created buffer.
static GLuint SetupUnitQuad(GLint position_location);
+ // Returns a vector of size 2. The first is the array buffer object,
+ // the second is the element array buffer object.
+ static std::vector<GLuint> SetupIndexedUnitQuad(GLint position_location);
+
// Make a 6 vertex colors.
// Returns the created buffer.
static GLuint SetupColorsForUnitQuad(
« no previous file with comments | « gpu/command_buffer/tests/gl_program_unittest.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