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

Issue 2895953003: Use SkJpegEncoder in gfx jpeg_codec (Closed)

Created:
3 years, 7 months ago by msarett
Modified:
3 years, 6 months ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, cc-bugs_chromium.org, chfremer+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, davemoore+watch_chromium.org, devtools-reviews_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, mfoltz+watch_chromium.org, miu+watch_chromium.org, oshima+watch_chromium.org, pfeldman, piman+watch_chromium.org, posciak+watch_chromium.org, rsesek+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SkJpegEncoder in gfx jpeg_codec TBR=jochen@chromium.org TBR=reveman@chromium.org BUG=724616 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2895953003 Cr-Commit-Position: refs/heads/master@{#479694} Committed: https://chromium.googlesource.com/chromium/src/+/7060f1277a34592bc1f6c16762ccb0345669b073

Patch Set 1 #

Total comments: 16

Patch Set 2 : Rebase on previous CL #

Patch Set 3 : Update comment #

Total comments: 4

Patch Set 4 : Remove bad ! #

Total comments: 4

Patch Set 5 : Response to comments #

Total comments: 12

Patch Set 6 : Add API that takes SkBitmap #

Patch Set 7 : Remove brackets #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -273 lines) Patch
M cc/debug/picture_debug_util.cc View 1 2 3 4 5 1 chunk +7 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc View 1 2 3 4 5 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 4 5 1 chunk +4 lines, -9 lines 0 comments Download
M components/suggestions/image_encoder.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M components/user_manager/user_image/user_image.cc View 1 2 3 4 5 1 chunk +3 lines, -8 lines 0 comments Download
M components/wallpaper/wallpaper_manager_base.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/devtools/devtools_frame_trace_recorder.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M extensions/browser/api/web_contents_capture_client.cc View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 1 1 chunk +6 lines, -10 lines 0 comments Download
M media/gpu/jpeg_decode_accelerator_unittest.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 1 chunk +5 lines, -4 lines 1 comment Download
M services/data_decoder/image_decoder_impl_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M ui/gfx/codec/jpeg_codec.h View 1 2 3 4 5 2 chunks +19 lines, -11 lines 0 comments Download
M ui/gfx/codec/jpeg_codec.cc View 1 2 3 4 5 3 chunks +31 lines, -175 lines 0 comments Download
M ui/gfx/codec/jpeg_codec_unittest.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M ui/gfx/image/image_util.cc View 1 2 3 4 5 1 chunk +1 line, -6 lines 0 comments Download

Messages

Total messages: 62 (34 generated)
msarett1
3 years, 7 months ago (2017-05-25 12:32:11 UTC) #12
scroggo_chromium
https://codereview.chromium.org/2895953003/diff/1/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc (right): https://codereview.chromium.org/2895953003/diff/1/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc#newcode93 chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc:93: kN32_SkColorType, width, height, bitmap.rowBytes(), kQuality, This parameter list makes ...
3 years, 6 months ago (2017-05-30 14:27:53 UTC) #13
dcheng
https://codereview.chromium.org/2895953003/diff/1/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc File chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc (right): https://codereview.chromium.org/2895953003/diff/1/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc#newcode93 chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc:93: kN32_SkColorType, width, height, bitmap.rowBytes(), kQuality, On 2017/05/30 14:27:52, scroggo_chromium ...
3 years, 6 months ago (2017-06-02 15:35:00 UTC) #14
scroggo_chromium
https://codereview.chromium.org/2895953003/diff/1/ui/gfx/codec/jpeg_codec.h File ui/gfx/codec/jpeg_codec.h (right): https://codereview.chromium.org/2895953003/diff/1/ui/gfx/codec/jpeg_codec.h#newcode59 ui/gfx/codec/jpeg_codec.h:59: SkColorType colorType, On 2017/06/02 15:35:00, dcheng wrote: > Nit: ...
3 years, 6 months ago (2017-06-02 17:35:51 UTC) #15
msarett1
PTAL, I think this is much cleaner now that I've removed RGB and legacy libjpeg ...
3 years, 6 months ago (2017-06-07 18:01:15 UTC) #16
scroggo_chromium
https://codereview.chromium.org/2895953003/diff/40001/cc/debug/picture_debug_util.cc File cc/debug/picture_debug_util.cc (right): https://codereview.chromium.org/2895953003/diff/40001/cc/debug/picture_debug_util.cc#newcode51 cc/debug/picture_debug_util.cc:51: encoding_succeeded = gfx::PNGCodec::EncodeBGRASkBitmap(bm, false, &data); Make this take an ...
3 years, 6 months ago (2017-06-07 18:15:14 UTC) #17
msarett1
https://codereview.chromium.org/2895953003/diff/40001/cc/debug/picture_debug_util.cc File cc/debug/picture_debug_util.cc (right): https://codereview.chromium.org/2895953003/diff/40001/cc/debug/picture_debug_util.cc#newcode51 cc/debug/picture_debug_util.cc:51: encoding_succeeded = gfx::PNGCodec::EncodeBGRASkBitmap(bm, false, &data); On 2017/06/07 18:15:13, scroggo_chromium ...
3 years, 6 months ago (2017-06-07 18:20:12 UTC) #19
scroggo_chromium
lgtm https://codereview.chromium.org/2895953003/diff/60001/components/suggestions/image_encoder.cc File components/suggestions/image_encoder.cc (right): https://codereview.chromium.org/2895953003/diff/60001/components/suggestions/image_encoder.cc#newcode26 components/suggestions/image_encoder.cc:26: DCHECK(success); It's too bad these three lines get ...
3 years, 6 months ago (2017-06-07 18:43:56 UTC) #21
msarett1
https://codereview.chromium.org/2895953003/diff/60001/components/suggestions/image_encoder.cc File components/suggestions/image_encoder.cc (right): https://codereview.chromium.org/2895953003/diff/60001/components/suggestions/image_encoder.cc#newcode26 components/suggestions/image_encoder.cc:26: DCHECK(success); On 2017/06/07 18:43:56, scroggo_chromium wrote: > It's too ...
3 years, 6 months ago (2017-06-07 20:51:10 UTC) #24
scroggo_chromium
LGTM
3 years, 6 months ago (2017-06-07 20:59:07 UTC) #25
msarett1
dcheng@ does the new API look good to you? Just want to get your thoughts ...
3 years, 6 months ago (2017-06-08 16:38:33 UTC) #30
msarett1
On 2017/06/08 16:38:33, msarett1 wrote: > dcheng@ does the new API look good to you? ...
3 years, 6 months ago (2017-06-12 15:14:23 UTC) #31
dcheng
I didn't go through all the files yet; just some high-level comments (sorry for missing ...
3 years, 6 months ago (2017-06-12 20:35:43 UTC) #32
msarett1
https://codereview.chromium.org/2895953003/diff/80001/cc/debug/picture_debug_util.cc File cc/debug/picture_debug_util.cc (right): https://codereview.chromium.org/2895953003/diff/80001/cc/debug/picture_debug_util.cc#newcode37 cc/debug/picture_debug_util.cc:37: const int kJpegQuality = 80; On 2017/06/12 20:35:43, dcheng ...
3 years, 6 months ago (2017-06-12 20:57:57 UTC) #33
dcheng
https://codereview.chromium.org/2895953003/diff/80001/ui/gfx/codec/jpeg_codec.h File ui/gfx/codec/jpeg_codec.h (right): https://codereview.chromium.org/2895953003/diff/80001/ui/gfx/codec/jpeg_codec.h#newcode51 ui/gfx/codec/jpeg_codec.h:51: static bool Encode(const SkPixmap& input, On 2017/06/12 20:57:56, msarett1 ...
3 years, 6 months ago (2017-06-12 21:00:15 UTC) #34
msarett1
Sounds good to me, I've added a version that takes an SkBitmap. https://codereview.chromium.org/2895953003/diff/80001/cc/debug/picture_debug_util.cc File cc/debug/picture_debug_util.cc ...
3 years, 6 months ago (2017-06-12 21:43:11 UTC) #35
dcheng
lgtm
3 years, 6 months ago (2017-06-13 08:08:46 UTC) #36
msarett1
Great, adding OWNERS now. Please take a look. reveman@: cc/debug/picture_debug_util.cc bshe@: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_test_utils.cc jochen@: chrome/renderer/chrome_render_frame_observer.cc jochen@: ...
3 years, 6 months ago (2017-06-13 13:20:24 UTC) #40
Robert Sesek
image_util LGTM
3 years, 6 months ago (2017-06-13 14:31:10 UTC) #41
bshe
On 2017/06/13 14:31:10, Robert Sesek wrote: > image_util LGTM wallpaper lgtm
3 years, 6 months ago (2017-06-13 14:43:39 UTC) #42
dgozman
devtools lgtm
3 years, 6 months ago (2017-06-13 16:20:53 UTC) #43
Ken Rockot(use gerrit already)
lgtm
3 years, 6 months ago (2017-06-13 16:21:28 UTC) #44
sandersd (OOO until July 31)
media/ lgtm.
3 years, 6 months ago (2017-06-13 17:38:10 UTC) #47
tbarzic
lgtm
3 years, 6 months ago (2017-06-14 16:31:52 UTC) #48
msarett1
jochen@, reveman@, can you please take a look? reveman@: cc/debug/picture_debug_util.cc jochen@: chrome/renderer/chrome_render_frame_observer.cc jochen@: components/ jochen@: ...
3 years, 6 months ago (2017-06-14 23:57:26 UTC) #49
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/2895953003/120001
3 years, 6 months ago (2017-06-15 14:29:52 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/7060f1277a34592bc1f6c16762ccb0345669b073
3 years, 6 months ago (2017-06-15 14:35:19 UTC) #60
Lei Zhang
3 years, 6 months ago (2017-06-16 21:22:37 UTC) #62
Message was sent while issue was closed.
Drive-by chrome/ and pdf/ lgtm

https://codereview.chromium.org/2895953003/diff/120001/pdf/pdfium/pdfium_engi...
File pdf/pdfium/pdfium_engine.cc (right):

https://codereview.chromium.org/2895953003/diff/120001/pdf/pdfium/pdfium_engi...
pdf/pdfium/pdfium_engine.cc:1424: SkImageInfo info = SkImageInfo::Make(
We are doing a bit more work than before for a branch that may not be taken. Let
me see if I can shuffle the code around a bit.

Powered by Google App Engine
This is Rietveld 408576698