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

Unified Diff: cc/output/shader.cc

Issue 1359593002: Cleanup: Pass std::string as const reference from cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/output/shader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/output/shader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698