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

Unified Diff: Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp

Issue 124943003: Remove 'String::append' from some of the blink source. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments Created 6 years, 11 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: Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp
diff --git a/Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp b/Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp
old mode 100644
new mode 100755
index 63e384383be80e8541611155a126ce7e32294f9e..1e03309de7a8ebd1fec0e1c1c4b701768f7789af
--- a/Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp
+++ b/Source/platform/graphics/filters/custom/CustomFilterValidatedProgram.cpp
@@ -290,7 +290,7 @@ String CustomFilterValidatedProgram::blendFunctionString(blink::WebBlendMode ble
const char* blendComponentExpression = "Co = 0.0;";
bool needsLuminosityHelperFunctions = false;
bool needsSaturationHelperFunctions = false;
- String blendFunctionString;
+ StringBuilder blendFunctionString;
switch (blendMode) {
case blink::WebBlendModeNormal:
blendColorExpression = "Cs";
@@ -509,7 +509,7 @@ String CustomFilterValidatedProgram::blendFunctionString(blink::WebBlendMode ble
}
), blendComponentExpression, blendColorExpression));
- return blendFunctionString;
+ return blendFunctionString.toString();
}
String CustomFilterValidatedProgram::compositeFunctionString(CompositeOperator compositeOperator)

Powered by Google App Engine
This is Rietveld 408576698