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

Issue 700893002: Include SkTypes so that SK_SUPPORT_GPU is meaningful. (Closed)

Created:
6 years, 1 month ago by scroggo
Modified:
6 years, 1 month ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Include SkTypes so that SK_SUPPORT_GPU is meaningful. For the Android framework build, we get our defines from SkUserConfig, rather than from the makefile, so we need to include it (via SkTypes) before we can use our defines. Fixes Android framework build. Committed: https://skia.googlesource.com/skia/+/ccae588932ac7966948ae9291f496fdb04901985

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/core/SkMultiPictureDraw.cpp View 1 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
scroggo
6 years, 1 month ago (2014-11-04 15:48:44 UTC) #2
robertphillips
lgtm
6 years, 1 month ago (2014-11-04 15:50:08 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700893002/1
6 years, 1 month ago (2014-11-04 15:52:09 UTC) #5
reed1
or we could just move the 4-5 includes (e.g. SkCanvas.h) above the #ifdef check... Perhaps ...
6 years, 1 month ago (2014-11-04 15:52:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700893002/20001
6 years, 1 month ago (2014-11-04 16:00:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/700893002/20001
6 years, 1 month ago (2014-11-04 16:05:38 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as ccae588932ac7966948ae9291f496fdb04901985
6 years, 1 month ago (2014-11-04 16:11:10 UTC) #14
scroggo
On 2014/11/04 15:52:34, reed1 wrote: > or we could just move the 4-5 includes (e.g. ...
6 years, 1 month ago (2014-11-04 16:29:27 UTC) #15
reed1
6 years, 1 month ago (2014-11-04 17:25:32 UTC) #16
Message was sent while issue was closed.
On 2014/11/04 16:29:27, scroggo wrote:
> On 2014/11/04 15:52:34, reed1 wrote:
> > or we could just move the 4-5 includes (e.g. SkCanvas.h) above the #ifdef
> > check... Perhaps w/ a comment why they are there before the check.
> 
> Was that really worth removing from the CQ? I'm trying to fix a build...
> 
> I've taken your advice, but I'm not sure it's better (except for the comment -
> in general
> I'm in favor of more comments).
> 
> FWIW, in https://codereview.chromium.org/394533003/ and
> https://codereview.chromium.org/294393011/
> we decided to include SkTypes, rather than reordering includes. Also, the
style
> guide says,
> "the correct way to get access to the config system is to #include SkTypes.h."
> It's tucked away
> in a section on memory management, but if defining SK_SUPPORT_GPU is a part of
> the "config system"
> (which it is for the Android framework), then that seems to apply here.
> 
> I was about to update the style guide and send an email to the team with
advice
> on this issue.
> Do you think it should say to reorder includes? Should we open up this
> discussion to the team
> as a whole?
> 
> We'll still get breakages like this though, unless we do some kind of
presubmit
> check. I don't
> think it's feasible to add an Android framework builder to the CQ, but maybe
it
> would be possible
> to do a special build where we read all our defines from a custom SkUserConfig
> rather than from
> the makefiles. I'm guessing this would be tricky - we'd need to write some
code
> to do some gyp
> processing along the way (perhaps similar to what's done in
gyp_to_android.py).
> There was a
> discussion recently on skia-team about using a bot to check/enforce our
include
> ordering. It did
> not seem to get much traction, but we could use something like that for this
> problem as well.
> (And it would likely be simpler than the other approach I suggested.)

I stopped it, not seeing any comments about my comments, and then restarted it
about a minute later. Sorry for the delay.

Powered by Google App Engine
This is Rietveld 408576698