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

Unified Diff: cc/output/shader.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 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
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index 4a877ae859f6e6da9bcd4d759881fdfe78e45f00..a4ee1bbfc6baa38661c4b2cfb3e08800a880c653 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -772,7 +772,7 @@ FragmentTexBlendMode::FragmentTexBlendMode()
}
std::string FragmentTexBlendMode::SetBlendModeFunctions(
- std::string shader_string) const {
+ const std::string& shader_string) const {
if (shader_string.find("ApplyBlendMode") == std::string::npos)
return shader_string;

Powered by Google App Engine
This is Rietveld 408576698