DescriptionAvoid unnecessary copies in ImageDecoder.
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.*'
Committed: https://crrev.com/601d970a8b243166000aab822b779e66a0d3760e
Cr-Commit-Position: refs/heads/master@{#407861}
Patch Set 1 #Patch Set 2 : Change ArcWallpaperHandler to use new API. #
Messages
Total messages: 15 (7 generated)
|