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

Issue 1974013002: Replace SkBitmap with gfx::Image in the ImageFetcher API. (Closed)

Created:
4 years, 7 months ago by markusheintz_
Modified:
4 years, 7 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, droger+watchlist_chromium.org, mcwilliams+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, danakjdonnd+watch_chromium.org, dgn+watch_chromium.org, sdefresne+watchlist_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, blundell+watchlist_chromium.org, kmadhusu+watch_chromium.org, Jered, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace SkBitmap with gfx::Image in the ImageFetcher API and the NTPSnippetsService API. This will increase the performance on iOS. BUG=609127, 612760 Committed: https://crrev.com/049dce3d29e33aa1dae4228e0cfb301c391e795b Cr-Commit-Position: refs/heads/master@{#394719}

Patch Set 1 #

Patch Set 2 : Update browser tests. #

Patch Set 3 : Update iOS code and MockImageFetcher. #

Patch Set 4 : Add null pointer handling and fix iOS import #

Patch Set 5 : Change the ImageFetcher API to use const refs instead of const ptrs. #

Patch Set 6 : Fix iOS build errors. #

Total comments: 32

Patch Set 7 : Fix more iOS build errors. #

Total comments: 8

Patch Set 8 : Address comments treib,noyau #

Total comments: 6

Patch Set 9 : Address comments from treib@ #

Total comments: 9

Patch Set 10 : Adding unsafed image_fetcher_impl.mm change. #

Patch Set 11 : Address comments of noyau@ #

Patch Set 12 : Merge https://codereview.chromium.org/1995493002/ #

Patch Set 13 : Sync #

Patch Set 14 : Sync again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -64 lines) Patch
M chrome/browser/android/ntp/ntp_snippets_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/search/thumbnail_source.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/search/thumbnail_source.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M components/image_fetcher/image_fetcher.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M components/image_fetcher/image_fetcher_delegate.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -3 lines 0 comments Download
M components/suggestions/image_manager.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M components/suggestions/image_manager.cc View 1 2 3 4 5 6 7 6 chunks +23 lines, -6 lines 0 comments Download
M components/suggestions/image_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M ios/chrome/browser/suggestions/image_fetcher_impl.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -6 lines 0 comments Download
M ios/chrome/browser/suggestions/image_fetcher_impl.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 43 (18 generated)
markusheintz_
Marc please take a first look at this CL. We can also replace the SkBitmap ...
4 years, 7 months ago (2016-05-13 15:36:38 UTC) #3
markusheintz_
Eric could you also take a look at this CL? Thanks a lot
4 years, 7 months ago (2016-05-13 15:41:31 UTC) #5
Marc Treib
Generally looks good! Just a bunch of nits below. https://codereview.chromium.org/1974013002/diff/100001/chrome/browser/search/suggestions/image_fetcher_impl.cc File chrome/browser/search/suggestions/image_fetcher_impl.cc (right): https://codereview.chromium.org/1974013002/diff/100001/chrome/browser/search/suggestions/image_fetcher_impl.cc#newcode75 chrome/browser/search/suggestions/image_fetcher_impl.cc:75: ...
4 years, 7 months ago (2016-05-13 15:54:00 UTC) #6
noyau (Ping after 24h)
Two of my comments are because the changes are not deep enough yet. I'm assuming ...
4 years, 7 months ago (2016-05-13 16:10:10 UTC) #7
markusheintz_
https://codereview.chromium.org/1974013002/diff/100001/chrome/browser/search/suggestions/image_fetcher_impl.cc File chrome/browser/search/suggestions/image_fetcher_impl.cc (right): https://codereview.chromium.org/1974013002/diff/100001/chrome/browser/search/suggestions/image_fetcher_impl.cc#newcode75 chrome/browser/search/suggestions/image_fetcher_impl.cc:75: if (bitmap != NULL) On 2016/05/13 15:53:59, Marc Treib ...
4 years, 7 months ago (2016-05-17 13:08:23 UTC) #8
Marc Treib
LGTM, thanks! https://codereview.chromium.org/1974013002/diff/140001/chrome/browser/search/suggestions/image_fetcher_impl.cc File chrome/browser/search/suggestions/image_fetcher_impl.cc (right): https://codereview.chromium.org/1974013002/diff/140001/chrome/browser/search/suggestions/image_fetcher_impl.cc#newcode79 chrome/browser/search/suggestions/image_fetcher_impl.cc:79: callback_iter != request->callbacks.end(); ++callback_iter) { optional nit: ...
4 years, 7 months ago (2016-05-17 14:12:01 UTC) #9
markusheintz_
https://codereview.chromium.org/1974013002/diff/140001/chrome/browser/search/suggestions/image_fetcher_impl.cc File chrome/browser/search/suggestions/image_fetcher_impl.cc (right): https://codereview.chromium.org/1974013002/diff/140001/chrome/browser/search/suggestions/image_fetcher_impl.cc#newcode79 chrome/browser/search/suggestions/image_fetcher_impl.cc:79: callback_iter != request->callbacks.end(); ++callback_iter) { On 2016/05/17 14:12:01, Marc ...
4 years, 7 months ago (2016-05-17 14:26:45 UTC) #10
noyau (Ping after 24h)
lgtm with minor issues. https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm File ios/chrome/browser/suggestions/image_fetcher_impl.mm (right): https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm#newcode54 ios/chrome/browser/suggestions/image_fetcher_impl.mm:54: gfx::Image image = gfx::Image(ui_image); Can't ...
4 years, 7 months ago (2016-05-17 14:44:06 UTC) #12
markusheintz_
Adding Dana as reviewer. I'm adding a dep on ui/gfx in this CL. Could you ...
4 years, 7 months ago (2016-05-17 14:44:55 UTC) #13
markusheintz_
https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm File ios/chrome/browser/suggestions/image_fetcher_impl.mm (right): https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm#newcode54 ios/chrome/browser/suggestions/image_fetcher_impl.mm:54: gfx::Image image = gfx::Image(ui_image); On 2016/05/17 14:44:05, noyau wrote: ...
4 years, 7 months ago (2016-05-17 15:00:43 UTC) #14
markusheintz_
Replacing danakj@ with sky@ after talking to Dana. Scott I'm adding ui/gfx as dependency for ...
4 years, 7 months ago (2016-05-17 20:59:51 UTC) #16
sky
I'm ok with the dep, but doesn't you also need a dep on skia too?
4 years, 7 months ago (2016-05-17 21:25:40 UTC) #17
noyau (Ping after 24h)
https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm File ios/chrome/browser/suggestions/image_fetcher_impl.mm (right): https://codereview.chromium.org/1974013002/diff/160001/ios/chrome/browser/suggestions/image_fetcher_impl.mm#newcode59 ios/chrome/browser/suggestions/image_fetcher_impl.mm:59: return; On 2016/05/17 15:00:43, markusheintz_ wrote: > On 2016/05/17 ...
4 years, 7 months ago (2016-05-18 05:48:53 UTC) #18
markusheintz_
On 2016/05/17 21:25:40, sky wrote: > I'm ok with the dep, but doesn't you also ...
4 years, 7 months ago (2016-05-18 09:58:32 UTC) #19
markusheintz_
On 2016/05/18 09:58:32, markusheintz_ wrote: > On 2016/05/17 21:25:40, sky wrote: > > I'm ok ...
4 years, 7 months ago (2016-05-18 11:22:32 UTC) #20
Marc Treib
Yup, still LGTM :)
4 years, 7 months ago (2016-05-18 11:34:30 UTC) #24
sky
LGTM
4 years, 7 months ago (2016-05-18 16:46:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974013002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974013002/220001
4 years, 7 months ago (2016-05-18 16:49:46 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/185494)
4 years, 7 months ago (2016-05-18 16:56:51 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974013002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974013002/240001
4 years, 7 months ago (2016-05-18 17:00:24 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/7813)
4 years, 7 months ago (2016-05-18 17:06:20 UTC) #35
sdefresne
The ios failure should have been fixed, no need to update, you can just send ...
4 years, 7 months ago (2016-05-18 18:16:35 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974013002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974013002/260001
4 years, 7 months ago (2016-05-19 08:15:36 UTC) #39
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-05-19 08:43:41 UTC) #41
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 08:44:50 UTC) #43
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/049dce3d29e33aa1dae4228e0cfb301c391e795b
Cr-Commit-Position: refs/heads/master@{#394719}

Powered by Google App Engine
This is Rietveld 408576698