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

Issue 2784233003: [LargeIconService] Allow decoding of images in the service (Closed)

Created:
3 years, 8 months ago by jkrcal
Modified:
3 years, 8 months ago
Reviewers:
pkotwicz
CC:
chromium-reviews, mastiz
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[LargeIconService] Allow decoding of images in the service Previously, LargeIconService only returned raw results. This is advantagous for some clients that cache (or in other way need to use) raw image data as encoding back is expensive. Still, many clients of the service need to do the decoding on their side. This CL adds another API function with the same behaviour that returns a decoded gfx::Image if available. It leaves renaming the existing function, callback, and result struct to a follow-up CL. BUG=706787 Review-Url: https://codereview.chromium.org/2784233003 Cr-Commit-Position: refs/heads/master@{#462125} Committed: https://chromium.googlesource.com/chromium/src/+/5fb02f69ac851beaeafbfcc84fb649744bc0944d

Patch Set 1 #

Patch Set 2 : Minor changes #

Total comments: 10

Patch Set 3 : Peter's comments #

Patch Set 4 : Minor changes #

Patch Set 5 : Minor changes #2 #

Total comments: 2

Patch Set 6 : Peter's comments #

Total comments: 19

Patch Set 7 : Peter's comments #2 #

Total comments: 24

Patch Set 8 : Peter's comments #3 #

Total comments: 8

Patch Set 9 : Peter's comments #4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -259 lines) Patch
M components/favicon/core/large_icon_service.h View 1 2 3 4 5 6 7 2 chunks +23 lines, -5 lines 0 comments Download
M components/favicon/core/large_icon_service.cc View 1 2 3 4 5 6 7 8 5 chunks +149 lines, -103 lines 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +160 lines, -151 lines 0 comments Download
M components/favicon_base/favicon_callback.h View 2 chunks +9 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_types.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_types.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (28 generated)
jkrcal
Peter, could you PTAL? Apart from my own application of this new API function, I ...
3 years, 8 months ago (2017-03-30 13:10:46 UTC) #6
pkotwicz
https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc#newcode329 components/favicon/core/large_icon_service.cc:329: base::Unretained(this), callback)); Can the decoding occur in the service ...
3 years, 8 months ago (2017-03-30 19:14:23 UTC) #7
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc#newcode329 components/favicon/core/large_icon_service.cc:329: base::Unretained(this), callback)); On 2017/03/30 19:14:23, pkotwicz ...
3 years, 8 months ago (2017-03-31 12:31:11 UTC) #8
pkotwicz
I posted a suggestion. Let me know what you think https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/20001/components/favicon/core/large_icon_service.cc#newcode329 ...
3 years, 8 months ago (2017-04-02 20:46:52 UTC) #17
jkrcal
Thanks! PTAL again. https://codereview.chromium.org/2784233003/diff/80001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/80001/components/favicon/core/large_icon_service.cc#newcode169 components/favicon/core/large_icon_service.cc:169: bool return_original_size) { On 2017/04/02 20:46:52, ...
3 years, 8 months ago (2017-04-03 17:44:56 UTC) #19
pkotwicz
Mostly nits https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc#newcode65 components/favicon/core/large_icon_service.cc:65: Nit: Please add a comment to this ...
3 years, 8 months ago (2017-04-04 02:34:41 UTC) #23
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc#newcode65 components/favicon/core/large_icon_service.cc:65: On 2017/04/04 02:34:40, pkotwicz wrote: > ...
3 years, 8 months ago (2017-04-04 09:34:16 UTC) #26
pkotwicz
Mostly test nits https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc#newcode153 components/favicon/core/large_icon_service.cc:153: SkBitmap image_result_; It is confusing to ...
3 years, 8 months ago (2017-04-04 12:43:43 UTC) #29
jkrcal
PTAL, again! https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc File components/favicon/core/large_icon_service.cc (right): https://codereview.chromium.org/2784233003/diff/100001/components/favicon/core/large_icon_service.cc#newcode153 components/favicon/core/large_icon_service.cc:153: SkBitmap image_result_; On 2017/04/04 12:43:42, pkotwicz wrote: ...
3 years, 8 months ago (2017-04-04 14:44:41 UTC) #30
pkotwicz
Just test nits! https://codereview.chromium.org/2784233003/diff/120001/components/favicon/core/large_icon_service_unittest.cc File components/favicon/core/large_icon_service_unittest.cc (right): https://codereview.chromium.org/2784233003/diff/120001/components/favicon/core/large_icon_service_unittest.cc#newcode246 components/favicon/core/large_icon_service_unittest.cc:246: bool get_raw_bitmap) { I like your ...
3 years, 8 months ago (2017-04-04 17:47:15 UTC) #31
jkrcal
Peter, could you PTAL, again? https://codereview.chromium.org/2784233003/diff/120001/components/favicon/core/large_icon_service_unittest.cc File components/favicon/core/large_icon_service_unittest.cc (right): https://codereview.chromium.org/2784233003/diff/120001/components/favicon/core/large_icon_service_unittest.cc#newcode246 components/favicon/core/large_icon_service_unittest.cc:246: bool get_raw_bitmap) { On ...
3 years, 8 months ago (2017-04-05 15:34:38 UTC) #33
pkotwicz
LGTM!
3 years, 8 months ago (2017-04-05 15:40:59 UTC) #35
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/2784233003/160001
3 years, 8 months ago (2017-04-05 16:59:27 UTC) #39
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 17:09:55 UTC) #42
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/5fb02f69ac851beaeafbfcc84fb6...

Powered by Google App Engine
This is Rietveld 408576698