-
nya authored
For the deprecated API methods with const std::string& parameter, copy is reduced from two times to once. With the new API methods with std::vector<uint8_t> parameter, the caller can avoid copies at all by passing data with std::move(). Also converts ArcWallpaperHandler to use the new API as a first user. BUG=631327 TEST=browser_tests --gtest_filter='ImageDecoderBrowserTest.*' Review-Url: https://codereview.chromium.org/2177833003 Cr-Commit-Position: refs/heads/master@{#407861}
601d970a