DescriptionTeach WebString about 8 bit strings
Previously we always upconverted strings backing WebString to have both a 16
bit and an 8 bit buffer whenever we converted a WebString to a string16.
There's no reason to store a shadow 16 bit buffer in the String for this use
case. It's just as fast to copy out an 8 bit buffer into a string16 as it is to
copy out a 16 bit buffer.
This CL removes the vast majority of the string up converstions for Mobile
Gmail. In a future CL, we should remove WebString::data() to prevent Chromium
code from accidentially upconverting the underlying String.
R=brettw@chromium.org, eseidel@chromium.org, jamesr@chromium.org
NOTRY=true
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151535
Patch Set 1 #Patch Set 2 : Better std::string pattern #
Total comments: 5
Patch Set 3 : Now with smaller binary size #Patch Set 4 : Merge to trunk #Patch Set 5 : Update to base #
Messages
Total messages: 20 (0 generated)
|