commit | b2885d59bccb1c5045e52135c5dd7a85a57694fa | [log] [tgz] |
---|---|---|
author | bungeman <bungeman@google.com> | Mon Aug 31 14:36:48 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Aug 31 14:36:48 2015 -0700 |
tree | bace36ee35c1329238e7ea715c045ac8d0a595c3 | |
parent | 46b42f5304e883f6337b4fd435b3dcd63ade3612 [diff] |
Document SkString::resize(int) as destructive. It is easy to think in some cases that SkString::resize(int) is not destructive, since optimizations mean that most of the time the data is still there after a resize. However, in the general case, the original string's data is lost and the new SkString contains garbage. Review URL: https://codereview.chromium.org/1304833004