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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 571073003: Make the GPU feature info code more compact. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/service/feature_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 3be7be0ecbaf99075d44d4e24d392e3b7cf82c4b..e853d9b59387fac65e910d0ca3fb0cdba2fcf157 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -860,7 +860,8 @@ void FeatureInfo::InitializeFeatures() {
}
}
-void FeatureInfo::AddExtensionString(const std::string& str) {
+void FeatureInfo::AddExtensionString(const char* s) {
+ std::string str(s);
size_t pos = extensions_.find(str);
while (pos != std::string::npos &&
pos + str.length() < extensions_.length() &&
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698