Index: ui/gl/gl_helper.cc |
diff --git a/ui/gl/gl_helper.cc b/ui/gl/gl_helper.cc |
index 97a4e3b76f57be363ef6b289c827b383236b700a..4378c6b81838280dc6c9bdf44048ac6a6c934e46 100644 |
--- a/ui/gl/gl_helper.cc |
+++ b/ui/gl/gl_helper.cc |
@@ -7,6 +7,8 @@ |
#include <string> |
#include "base/logging.h" |
+#include "ui/gl/gl_context.h" |
+#include "ui/gl/gl_version_info.h" |
#include "ui/gl/scoped_binders.h" |
namespace gl { |
@@ -94,4 +96,9 @@ void GLHelper::DrawQuad(GLuint vertex_buffer) { |
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); |
} |
+// static |
+bool GLHelper::ShouldTestsUseVAOs() { |
+ return GLContext::GetCurrent()->GetVersionInfo()->is_desktop_core_profile; |
+} |
+ |
} // namespace gl |