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

Issue 641513003: [Suggestions] Introduce a different image encoder/decoder for iOS (Closed)

Created:
6 years, 2 months ago by Mathieu
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Suggestions] Introduce a different image encoder/decoder for iOS This introduces the new files and dependencies (not used yet). A further improvement will be to switch to use gfx::Image. TBR=senorblanco BUG=409156 Committed: https://crrev.com/a27b85e6387d5731c9a42312fbeea99891915ecd Cr-Commit-Position: refs/heads/master@{#299158}

Patch Set 1 : Initial #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Latest #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -31 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions.gypi View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M components/suggestions/BUILD.gn View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M components/suggestions/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A components/suggestions/image_encoder.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A components/suggestions/image_encoder.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A components/suggestions/image_encoder_ios.h View 1 2 1 chunk +24 lines, -0 lines 2 comments Download
A components/suggestions/image_encoder_ios.mm View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M components/suggestions/image_manager.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M components/suggestions/image_manager.cc View 1 2 4 chunks +8 lines, -25 lines 0 comments Download
M components/suggestions/image_manager_unittest.cc View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
Mathieu
Hi guys, Can you take a look?
6 years, 2 months ago (2014-10-09 20:48:52 UTC) #3
justincohen
lgtm
6 years, 2 months ago (2014-10-09 21:11:26 UTC) #4
blundell
LGTM as an optional nit, I think it would work well from a code cleanliness ...
6 years, 2 months ago (2014-10-10 06:01:05 UTC) #5
Mathieu
Thanks! Implemented your suggestion. https://codereview.chromium.org/641513003/diff/110001/components/suggestions/image_manager.cc File components/suggestions/image_manager.cc (right): https://codereview.chromium.org/641513003/diff/110001/components/suggestions/image_manager.cc#newcode23 components/suggestions/image_manager.cc:23: return suggestions::DecodeJPEGToSkBitmap(encoded_data); On 2014/10/10 06:01:05, ...
6 years, 2 months ago (2014-10-10 18:06:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641513003/170001
6 years, 2 months ago (2014-10-10 18:07:27 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16971)
6 years, 2 months ago (2014-10-10 18:15:03 UTC) #10
Mathieu
TBR senorblanco because of silly presubmit asking for owners of added DEPS.
6 years, 2 months ago (2014-10-10 18:19:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641513003/170001
6 years, 2 months ago (2014-10-10 18:20:50 UTC) #14
Stephen White
rsLGTM
6 years, 2 months ago (2014-10-10 18:23:19 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:170001)
6 years, 2 months ago (2014-10-10 19:20:05 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a27b85e6387d5731c9a42312fbeea99891915ecd Cr-Commit-Position: refs/heads/master@{#299158}
6 years, 2 months ago (2014-10-10 19:21:45 UTC) #18
blundell
Awesome! I really appreciate your work here. https://codereview.chromium.org/641513003/diff/170001/components/suggestions/image_encoder_ios.h File components/suggestions/image_encoder_ios.h (right): https://codereview.chromium.org/641513003/diff/170001/components/suggestions/image_encoder_ios.h#newcode14 components/suggestions/image_encoder_ios.h:14: // From ...
6 years, 2 months ago (2014-10-10 19:28:42 UTC) #19
Stephen White
https://codereview.chromium.org/641513003/diff/170001/components/suggestions/image_encoder_ios.h File components/suggestions/image_encoder_ios.h (right): https://codereview.chromium.org/641513003/diff/170001/components/suggestions/image_encoder_ios.h#newcode16 components/suggestions/image_encoder_ios.h:16: SkBitmap* DecodeJPEGToSkBitmap(const std::vector<unsigned char>& encoded_data); BTW, you can actually ...
6 years, 2 months ago (2014-10-10 19:32:36 UTC) #20
Mathieu
6 years, 2 months ago (2014-10-10 19:36:52 UTC) #21
Message was sent while issue was closed.
On 2014/10/10 19:32:36, Stephen White wrote:
>
https://codereview.chromium.org/641513003/diff/170001/components/suggestions/...
> File components/suggestions/image_encoder_ios.h (right):
> 
>
https://codereview.chromium.org/641513003/diff/170001/components/suggestions/...
> components/suggestions/image_encoder_ios.h:16: SkBitmap*
> DecodeJPEGToSkBitmap(const std::vector<unsigned char>& encoded_data);
> BTW, you can actually just return an SkBitmap by value; it refcounts its
> SkPixelRef data internally, so copying it is relatively cheap.

Thanks! Next CL will modify the interface to use gfx::Image so this may change.

Colin: I'm removing the header in a followup CL.

Powered by Google App Engine
This is Rietveld 408576698