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

Issue 630073002: [Suggestions] Create ImageEncoder, to abstract away image encode/decode. (Closed)

Created:
6 years, 2 months ago by Mathieu
Modified:
6 years, 2 months ago
Reviewers:
jam, huangs, blundell
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, justincohen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Suggestions] Create ImageEncoder, to abstract away image encode/decode. iOS can't depend on JPEG encoder. TBR=jam BUG=387751, 409156 Committed: https://crrev.com/f5e2e2fa7303d699027095cd9b7cfb9462b585f6 Cr-Commit-Position: refs/heads/master@{#298510}

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comments #

Patch Set 3 : pure virtual image_encoder #

Total comments: 4

Patch Set 4 : gn fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -38 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/search/suggestions/suggestions_service_factory.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions.gypi View 1 2 3 2 chunks +19 lines, -1 line 0 comments Download
M components/suggestions/BUILD.gn View 1 2 3 2 chunks +14 lines, -0 lines 1 comment Download
A components/suggestions/image_encoder.h View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M components/suggestions/image_manager.h View 1 2 3 4 chunks +6 lines, -5 lines 0 comments Download
M components/suggestions/image_manager.cc View 4 chunks +5 lines, -25 lines 0 comments Download
M components/suggestions/image_manager_unittest.cc View 1 2 3 7 chunks +20 lines, -4 lines 0 comments Download
A components/suggestions/jpeg/jpeg_image_encoder.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A components/suggestions/jpeg/jpeg_image_encoder.cc View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
Mathieu
Hi, This is ready for review. Sam: there should be no functionality change, but can ...
6 years, 2 months ago (2014-10-06 15:44:40 UTC) #2
huangs
Looks good. First round of comments. https://chromiumcodereview.appspot.com/630073002/diff/1/components/suggestions/image_manager.h File components/suggestions/image_manager.h (right): https://chromiumcodereview.appspot.com/630073002/diff/1/components/suggestions/image_manager.h#newcode41 components/suggestions/image_manager.h:41: ImageManager(scoped_ptr<ImageFetcher> image_fetcher, Add ...
6 years, 2 months ago (2014-10-06 17:14:18 UTC) #3
Mathieu
Thanks! https://chromiumcodereview.appspot.com/630073002/diff/1/components/suggestions/image_manager.h File components/suggestions/image_manager.h (right): https://chromiumcodereview.appspot.com/630073002/diff/1/components/suggestions/image_manager.h#newcode41 components/suggestions/image_manager.h:41: ImageManager(scoped_ptr<ImageFetcher> image_fetcher, On 2014/10/06 17:14:18, huangs1 wrote: > ...
6 years, 2 months ago (2014-10-06 18:13:35 UTC) #4
huangs
lgtm
6 years, 2 months ago (2014-10-06 18:24:47 UTC) #5
blundell
This is along the lines of what I had envisioned. ImageEncoder should be a pure ...
6 years, 2 months ago (2014-10-07 11:59:23 UTC) #6
Mathieu
Hi Colin, Can you have a look?
6 years, 2 months ago (2014-10-07 13:56:26 UTC) #8
blundell
LGTM I think for clarity it makes sense to put the jpeg files in their ...
6 years, 2 months ago (2014-10-07 14:14:00 UTC) #9
Mathieu
Thanks! https://codereview.chromium.org/630073002/diff/60001/chrome/browser/search/suggestions/suggestions_service_factory.cc File chrome/browser/search/suggestions/suggestions_service_factory.cc (right): https://codereview.chromium.org/630073002/diff/60001/chrome/browser/search/suggestions/suggestions_service_factory.cc#newcode82 chrome/browser/search/suggestions/suggestions_service_factory.cc:82: image_encoder.PassAs<ImageEncoder>(), On 2014/10/07 14:13:59, blundell wrote: > hmm, ...
6 years, 2 months ago (2014-10-07 16:00:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630073002/170001
6 years, 2 months ago (2014-10-07 16:01:28 UTC) #18
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/16021)
6 years, 2 months ago (2014-10-07 16:09:36 UTC) #20
Mathieu
On 2014/10/07 16:09:36, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-07 16:40:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630073002/170001
6 years, 2 months ago (2014-10-07 16:42:18 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:170001) as 23b020c3aa523003d35c90b4a9ad1d7fef2dd354
6 years, 2 months ago (2014-10-07 17:12:22 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f5e2e2fa7303d699027095cd9b7cfb9462b585f6 Cr-Commit-Position: refs/heads/master@{#298510}
6 years, 2 months ago (2014-10-07 17:13:03 UTC) #26
blundell
https://codereview.chromium.org/630073002/diff/170001/components/suggestions/BUILD.gn File components/suggestions/BUILD.gn (right): https://codereview.chromium.org/630073002/diff/170001/components/suggestions/BUILD.gn#newcode36 components/suggestions/BUILD.gn:36: static_library("jpeg_image_encoder") { nit: the same TODO for justincohen should ...
6 years, 2 months ago (2014-10-07 18:40:31 UTC) #27
Mathieu
6 years, 2 months ago (2014-10-08 14:50:55 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:170001) has been created in
https://codereview.chromium.org/634273002/ by mathp@chromium.org.

The reason for reverting is: It is no longer needed, we decided on a different
approach..

Powered by Google App Engine
This is Rietveld 408576698