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

Issue 2944633002: Use SkPngEncoder in gfx jpeg_codec (Closed)

Created:
3 years, 6 months ago by liyuqian
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SkPngEncoder in gfx jpeg_codec BUG=724616 Review-Url: https://codereview.chromium.org/2944633002 Cr-Commit-Position: refs/heads/master@{#486433} Committed: https://chromium.googlesource.com/chromium/src/+/88e6a1793be2e7cce6c07a43f3147b80325a18a7

Patch Set 1 #

Total comments: 14

Patch Set 2 : All Changed #

Total comments: 28

Patch Set 3 : Nits #

Patch Set 4 : Nits #

Total comments: 2

Patch Set 5 : Nit #

Total comments: 18

Patch Set 6 : DCHECK #

Patch Set 7 : Update comments #

Total comments: 4

Patch Set 8 : N32 #

Total comments: 2

Patch Set 9 : No default #

Patch Set 10 : Init colorType #

Patch Set 11 : Cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -380 lines) Patch
M ui/gfx/codec/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/codec/jpeg_codec.cc View 1 2 3 4 2 chunks +1 line, -24 lines 0 comments Download
M ui/gfx/codec/png_codec.h View 1 2 3 4 5 6 7 4 chunks +14 lines, -12 lines 0 comments Download
M ui/gfx/codec/png_codec.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +89 lines, -344 lines 0 comments Download
A ui/gfx/codec/vector_wstream.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ui/gfx/codec/vector_wstream.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (16 generated)
liyuqian
Please check this preliminary CL. I'd like to know if codec_prev.h/cc are Ok. I'll change ...
3 years, 6 months ago (2017-06-16 18:34:12 UTC) #3
scroggo_chromium
https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/codec_priv.h File ui/gfx/codec/codec_priv.h (right): https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/codec_priv.h#newcode17 ui/gfx/codec/codec_priv.h:17: class VectorWStream : public SkWStream { Are you planning ...
3 years, 6 months ago (2017-06-16 18:56:52 UTC) #5
Elliot Glaysher
mostly style things https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/codec_priv.cc File ui/gfx/codec/codec_priv.cc (right): https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/codec_priv.cc#newcode18 ui/gfx/codec/codec_priv.cc:18: } Same thing with newline and ...
3 years, 6 months ago (2017-06-16 19:08:11 UTC) #6
msarett1
Looks like a good start. https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (left): https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/png_codec.cc#oldcode743 ui/gfx/codec/png_codec.cc:743: bool discard_transparency, As we ...
3 years, 6 months ago (2017-06-16 21:29:56 UTC) #8
liyuqian
Thanks for all of your useful comments! I've now changed all PNG encoding code. https://codereview.chromium.org/2944633002/diff/1/ui/gfx/codec/codec_priv.cc ...
3 years, 6 months ago (2017-06-23 13:54:26 UTC) #9
dcheng
https://codereview.chromium.org/2944633002/diff/20001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/20001/ui/gfx/codec/png_codec.cc#newcode425 ui/gfx/codec/png_codec.cc:425: int zLibLevel = Z_DEFAULT_COMPRESSION) { Also, another optional nit ...
3 years, 6 months ago (2017-06-23 21:45:55 UTC) #10
msarett1
Change jpeg_codec to png_codec in commit message. ----- This generally looks good to me. Just ...
3 years, 6 months ago (2017-06-23 22:50:32 UTC) #11
Elliot Glaysher
https://codereview.chromium.org/2944633002/diff/20001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/20001/ui/gfx/codec/png_codec.cc#newcode6 ui/gfx/codec/png_codec.cc:6: #include "ui/gfx/codec/vector_wstream.h" nit: vector_wstream should be in the block ...
3 years, 6 months ago (2017-06-23 22:55:18 UTC) #12
liyuqian
Thank you everyone for the helpful comments! Please see the fixes below. https://codereview.chromium.org/2944633002/diff/20001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc ...
3 years, 5 months ago (2017-07-05 15:59:40 UTC) #13
liyuqian
Ping...
3 years, 5 months ago (2017-07-07 16:17:41 UTC) #14
liyuqian
Ping again.
3 years, 5 months ago (2017-07-10 17:50:38 UTC) #15
Elliot Glaysher
(Almost everyone is out on vacation, probably until the 17th because of No Meetings Week.) ...
3 years, 5 months ago (2017-07-10 17:59:07 UTC) #16
liyuqian
Thank you Elliot. Sorry that I didn't notice the no-meeting weeks. Take your time and ...
3 years, 5 months ago (2017-07-11 13:39:27 UTC) #17
scroggo_chromium
https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc#newcode447 ui/gfx/codec/png_codec.cc:447: SkASSERT(copy.peekPixels(&opaque_pixmap)); This only happens in debug. Maybe you want: ...
3 years, 5 months ago (2017-07-11 16:01:06 UTC) #18
liyuqian
Thanks Leon for the helpful comments. I clearly forgot to run the unit tests in ...
3 years, 5 months ago (2017-07-11 19:24:55 UTC) #19
scroggo_chromium
https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc#newcode468 ui/gfx/codec/png_codec.cc:468: format == FORMAT_RGBA ? kRGBA_8888_SkColorType : kBGRA_8888_SkColorType; On 2017/07/11 ...
3 years, 5 months ago (2017-07-11 19:33:10 UTC) #20
liyuqian
https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc#newcode468 ui/gfx/codec/png_codec.cc:468: format == FORMAT_RGBA ? kRGBA_8888_SkColorType : kBGRA_8888_SkColorType; On 2017/07/11 ...
3 years, 5 months ago (2017-07-11 19:59:25 UTC) #21
scroggo_chromium
lgtm https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/80001/ui/gfx/codec/png_codec.cc#newcode486 ui/gfx/codec/png_codec.cc:486: std::vector<PNGCodec::Comment> empty_comments; On 2017/07/11 19:59:25, liyuqian wrote: > ...
3 years, 5 months ago (2017-07-11 20:09:30 UTC) #22
liyuqian
https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc File ui/gfx/codec/png_codec.cc (right): https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc#newcode478 ui/gfx/codec/png_codec.cc:478: default: On 2017/07/11 20:09:30, scroggo_chromium wrote: > I think ...
3 years, 5 months ago (2017-07-11 20:21:27 UTC) #24
Elliot Glaysher
On 2017/07/11 20:21:27, liyuqian wrote: > https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc > File ui/gfx/codec/png_codec.cc (right): > > https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc#newcode478 > ...
3 years, 5 months ago (2017-07-12 18:13:57 UTC) #28
Elliot Glaysher
On 2017/07/11 20:21:27, liyuqian wrote: > https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc > File ui/gfx/codec/png_codec.cc (right): > > https://codereview.chromium.org/2944633002/diff/140001/ui/gfx/codec/png_codec.cc#newcode478 > ...
3 years, 5 months ago (2017-07-12 18:14:00 UTC) #29
liyuqian
On 2017/07/12 18:14:00, Elliot Glaysher wrote: > On 2017/07/11 20:21:27, liyuqian wrote: > > > ...
3 years, 5 months ago (2017-07-13 13:14:00 UTC) #34
Elliot Glaysher
lgtm
3 years, 5 months ago (2017-07-13 17:27:05 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/2944633002/200001
3 years, 5 months ago (2017-07-13 17:39:46 UTC) #38
commit-bot: I haz the power
3 years, 5 months ago (2017-07-13 17:45:22 UTC) #41
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/88e6a1793be2e7cce6c07a43f314...

Powered by Google App Engine
This is Rietveld 408576698