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

Issue 1401883005: Add dm target to BUILD and refactor BUILD file. Fix blaze compilation errors. (Closed)

Created:
5 years, 2 months ago by dogben
Modified:
5 years, 1 month ago
Reviewers:
msarett, scroggo, mtklein
CC:
jcgregorio, melanielc_google.com, reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add dm target to BUILD and refactor BUILD file. The corresponding google3 BUILD file changes are in google3 cl/105413829. Fix blaze compilation errors. The default compilation options for blaze require that the initialization list must list fields in initialization order. Also deal with differing versions of libjpeg. The BUILD changes were started by melanielc in google3 cl/102860957. BUG=skia: Committed: https://skia.googlesource.com/skia/+/6f6bef84a3be8ecbd0fd6452a8f257d95fbecef4

Patch Set 1 : #

Total comments: 24

Patch Set 2 : Respond to code review comments; fix BUILD_simulator.py. #

Patch Set 3 : Rebase and fix new issues in SkJpegCodec.cpp. #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+1427 lines, -150 lines) Patch
M BUILD.public View 1 4 chunks +202 lines, -58 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 5 chunks +19 lines, -3 lines 9 comments Download
M tools/BUILD.public.expected View 1 21 chunks +1165 lines, -87 lines 0 comments Download
M tools/BUILD_simulator.py View 1 2 chunks +41 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401883005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401883005/20001
5 years, 2 months ago (2015-10-14 16:48:12 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401883005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401883005/40001
5 years, 2 months ago (2015-10-14 16:59:43 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-14 17:07:04 UTC) #8
dogben
5 years, 2 months ago (2015-10-14 17:08:34 UTC) #10
mtklein
+Matt for changes to src/codec/SkJpegCodec.cpp https://codereview.chromium.org/1401883005/diff/40001/BUILD.public File BUILD.public (right): https://codereview.chromium.org/1401883005/diff/40001/BUILD.public#newcode22 BUILD.public:22: exclude = [ This ...
5 years, 2 months ago (2015-10-14 18:45:17 UTC) #12
msarett
lgtm https://codereview.chromium.org/1401883005/diff/40001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/40001/src/codec/SkJpegCodec.cpp#newcode157 src/codec/SkJpegCodec.cpp:157: int colorBytes = (dinfo->out_color_space == JCS_RGB565) ? 2 ...
5 years, 2 months ago (2015-10-14 19:58:26 UTC) #13
dogben
PTAL https://codereview.chromium.org/1401883005/diff/40001/BUILD.public File BUILD.public (right): https://codereview.chromium.org/1401883005/diff/40001/BUILD.public#newcode22 BUILD.public:22: exclude = [ On 2015/10/14 18:45:17, mtklein wrote: ...
5 years, 2 months ago (2015-10-14 23:11:06 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401883005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401883005/60001
5 years, 2 months ago (2015-10-14 23:12:33 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-14 23:19:17 UTC) #18
mtklein
Matt reenabled warnings under src/codec (accidentally disabled) and fixed them yesterday. Mind rebasing? Some of ...
5 years, 2 months ago (2015-10-15 14:22:17 UTC) #19
dogben
On 2015/10/15 14:22:17, mtklein wrote: > Matt reenabled warnings under src/codec (accidentally disabled) and fixed ...
5 years, 2 months ago (2015-10-15 14:58:17 UTC) #20
mtklein
lgtm
5 years, 2 months ago (2015-10-15 15:00:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1401883005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1401883005/80001
5 years, 2 months ago (2015-10-15 15:00:39 UTC) #24
msarett
Adding Leon for comments on Google3 specific code. https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode507 src/codec/SkJpegCodec.cpp:507: static ...
5 years, 2 months ago (2015-10-15 15:02:34 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:80001) as https://skia.googlesource.com/skia/+/6f6bef84a3be8ecbd0fd6452a8f257d95fbecef4
5 years, 2 months ago (2015-10-15 15:09:47 UTC) #27
scroggo
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode154 src/codec/SkJpegCodec.cpp:154: #if defined (GOOGLE3) Is this because GOOGLE3 is expected ...
5 years, 1 month ago (2015-10-27 13:51:23 UTC) #28
mtklein
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode154 src/codec/SkJpegCodec.cpp:154: #if defined (GOOGLE3) Why don't we just use libjpeg's ...
5 years, 1 month ago (2015-10-27 14:27:59 UTC) #29
msarett
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode154 src/codec/SkJpegCodec.cpp:154: #if defined (GOOGLE3) On 2015/10/27 14:27:59, mtklein wrote: > ...
5 years, 1 month ago (2015-10-27 14:31:36 UTC) #30
mtklein
On 2015/10/27 14:31:36, msarett wrote: > https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp > File src/codec/SkJpegCodec.cpp (right): > > https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode154 > ...
5 years, 1 month ago (2015-10-27 14:48:57 UTC) #31
dogben
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp#newcode154 src/codec/SkJpegCodec.cpp:154: #if defined (GOOGLE3) On 2015/10/27 at 13:51:23, scroggo wrote: ...
5 years, 1 month ago (2015-10-27 15:07:22 UTC) #32
mtklein
5 years, 1 month ago (2015-10-27 15:47:17 UTC) #33
Message was sent while issue was closed.
On 2015/10/27 15:07:22, Ben Wagner wrote:
>
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.cpp
> File src/codec/SkJpegCodec.cpp (right):
> 
>
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.c...
> src/codec/SkJpegCodec.cpp:154: #if defined (GOOGLE3)
> On 2015/10/27 at 13:51:23, scroggo wrote:
> > Is this because GOOGLE3 is expected to build against a particular version of
> libjpeg? Or perhaps just not libjpeg-turbo? Or it should build against a
variety
> of libjpegs?
> > 
> > This define just seems too vague (and yet too specific - maybe other
builders
> outside of GOOGLE3 need these special cases). I think we should take this one
of
> two ways:
> > 1. Require we build with a particular version of libjpeg-turbo.
> > This means we will need to update them in sync with us, which may be more
work
> in some ways.
> > 2. Use flags which correspond to specific features.
> > We already do this with TURBO_HAS_SKIP. It seems like libpng has every
> individual feature behind some kind of flag; I do not remember whether libjpeg
> does as well, but I recall SkImageDecoder_libjpeg having something like
> ANDROID_RGB_565 for some features that were not in libjpeg. Even if the
library
> does not, we could have our own flags, which would be a lot clearer than
> checking for GOOGLE3. This is potentially more work in its own way - bugs can
> arise for flags that we're not actively testing (or we just test more
> combinations...). I know that Blink decided to remove many of its ifdefs and
> just assume particular versions of libraries are being used. (They're in a
> different situation, since Blink is not a library that is expected to be used
> outside of Chromium.)
> 
> Sorry, I should have left a comment or TODO. I forwarded you a thread about
> updating the version of libjpeg_turbo in Google3.
> 
>
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.c...
> src/codec/SkJpegCodec.cpp:255: return false;
> On 2015/10/27 at 13:51:23, scroggo wrote:
> > It appears that in GOOGLE3, SkJpegCodec will not work for most images. Why
> bother building it there at all?
> 
> I didn't realize that not supporting JCS_EXT_* would mean it wouldn't work for
> most images. I can send a CL to conditionally remove Jpeg from SkCodec.cpp.
> 
>
https://codereview.chromium.org/1401883005/diff/80001/src/codec/SkJpegCodec.c...
> src/codec/SkJpegCodec.cpp:413: SK_CRASH();
> On 2015/10/27 at 13:51:23, scroggo wrote:
> > Why this difference? I assume that SkASSERT works in GOOGLE3, or our code
> would be littered with this conditional (or we'd just fix it in
> SkASSERT/SkPreConfig, so we wouldn't need this here).
> 
> Sorry, I added this before https://codereview.chromium.org/1400343005 and
didn't
> realize it wasn't needed anymore.

I agree there's no pressing need to support SkJpegCodec, or SkCodec in general,
in Google3.  I can see it simplifies things to ignore clients where we cannot
dictate the libjpeg flavor and version, perhaps at least until SkCodec's
launched in Blink + Android.

Powered by Google App Engine
This is Rietveld 408576698