Fix the performance degradation after removing CString
After removing CString in blink, the performance degradation(1.6%) has been reported on Android Nexus6 WebView Perf bot with system_health.memory_mobile benchmark. To fix the performance regresssion, this CL makes FontFaceCreationParams::Filename() return const std::string& to avoid a copy of std::string, And also, this CL moves |fallback_data.filename| to |fallback_font->filename| by using std::move in FontCache::GetFontForCharacter(). Bug: 974762, 950077 Change-Id: I7e08f56e58b96d326982e7d4d26866d4cafab881 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1701628 Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Reviewed-by:Jeremy Roman <jbroman@chromium.org> Cr-Commit-Position: refs/heads/master@{#678541}
Showing
Please register or sign in to comment