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

Unified Diff: ppapi/tests/test_graphics_3d.cc

Issue 397183002: Add PPAPI interface for OpenGL ES 2.0 Vertex Array Objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ppapi/tests/test_graphics_3d.cc
diff --git a/ppapi/tests/test_graphics_3d.cc b/ppapi/tests/test_graphics_3d.cc
index ddf5512f6e835e4a5388cafb61a14f55f0f005eb..47b6dd61ce9c31a4f791b88a8af940a4aea844cb 100644
--- a/ppapi/tests/test_graphics_3d.cc
+++ b/ppapi/tests/test_graphics_3d.cc
@@ -127,6 +127,17 @@ std::string TestGraphics3D::TestExtensionsGL() {
if (strstr(ext, "GL_ANGLE_instanced_arrays")) {
glDrawArraysInstancedANGLE(GL_TRIANGLE_STRIP, 0, 0, 0);
}
+ if (strstr(ext, "GL_OES_vertex_array_object")) {
+ GLuint a_vertex_array;
piman 2014/07/16 23:32:40 nit: = 0
Zachary Kuznia 2014/07/17 04:41:28 Done. Fixed the one above, too.
+ GLboolean is_a_vertex_array;
piman 2014/07/16 23:32:40 nit: declare on first use
Zachary Kuznia 2014/07/17 04:41:27 Done.
+ glGenVertexArraysOES(1, &a_vertex_array);
+ ASSERT_NE(0, a_vertex_array);
+ glBindVertexArrayOES(a_vertex_array);
+ is_a_vertex_array = glIsVertexArrayOES(a_vertex_array);
+ ASSERT_EQ(is_a_vertex_array, GL_TRUE);
+ glBindVertexArrayOES(0);
+ glDeleteVertexArraysOES(1, &a_vertex_array);
+ }
glSetCurrentContextPPAPI(kInvalidContext);
int32_t rv = SwapBuffersSync(&context);
« gpu/command_buffer/build_gles2_cmd_buffer.py ('K') | « ppapi/shared_impl/ppb_opengles2_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698