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

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

Issue 2537343008: Revert of Add command buffer support for EXT_sRGB_write_control (Closed)
Patch Set: Created 4 years 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/service/gles2_cmd_decoder_unittest_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_test_utils.cc
diff --git a/gpu/command_buffer/tests/gl_test_utils.cc b/gpu/command_buffer/tests/gl_test_utils.cc
index f10a919439493466edd96c65fcd4e29b20760eec..bf860a685bef74abed25a8bede665ec695ee4c2a 100644
--- a/gpu/command_buffer/tests/gl_test_utils.cc
+++ b/gpu/command_buffer/tests/gl_test_utils.cc
@@ -71,13 +71,9 @@
}
bool GLTestHelper::HasExtension(const char* extension) {
- // Pad with an extra space to ensure that |extension| is not a substring of
- // another extension.
- std::string extensions =
- std::string(reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS))) +
- " ";
- std::string extension_padded = std::string(extension) + " ";
- return extensions.find(extension_padded) != std::string::npos;
+ std::string extensions(
+ reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)));
+ return extensions.find(extension) != std::string::npos;
}
bool GLTestHelper::CheckGLError(const char* msg, int line) {
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698