Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 2177833003: Avoid unnecessary copies in ImageDecoder. (Closed)

Created:
4 years, 5 months ago by Shuhei Takahashi
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, hidehiko
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -28 lines) Patch
M chrome/browser/chromeos/arc/arc_wallpaper_handler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_wallpaper_handler.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/image_decoder.h View 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/image_decoder.cc View 5 chunks +27 lines, -7 lines 0 comments Download
M chrome/browser/image_decoder_browsertest.cc View 10 chunks +35 lines, -12 lines 0 comments Download
M components/arc/set_wallpaper_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
Shuhei Takahashi
thestig: PTAL
4 years, 5 months ago (2016-07-25 09:52:57 UTC) #2
Lei Zhang
Looking good. - Is there a bug # for this? - Do you want to ...
4 years, 5 months ago (2016-07-25 18:41:32 UTC) #3
Shuhei Takahashi
thestig: PTAL all hidehiko: PTAL at arc changes I've changed ArcWallpaperHandler as a first user ...
4 years, 4 months ago (2016-07-26 07:51:51 UTC) #7
hidehiko
*/arc/* lgtm.
4 years, 4 months ago (2016-07-26 07:56:29 UTC) #8
Lei Zhang
lgtm
4 years, 4 months ago (2016-07-26 17:58:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2177833003/20001
4 years, 4 months ago (2016-07-26 17:58:46 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-26 18:39:41 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 18:43:54 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/601d970a8b243166000aab822b779e66a0d3760e
Cr-Commit-Position: refs/heads/master@{#407861}

Powered by Google App Engine
This is Rietveld 408576698