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

Issue 10695047: Enable debugging code for non-official Android builds. (Closed)

Created:
8 years, 5 months ago by newt (away)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Enable debugging code for non-official Android builds. This enables DCHECK, NOTREACHED, and other debugging code on Android non-official release builds. Since all Android builds are done in release mode, we don't set NDEBUG according to whether the build is in release or debug mode. Rather we set NDEBUG for official builds only. This requires a change to skia.gyp to define SK_RELEASE exactly the same when building skia and its direct dependencies: SK_RELEASE should be defined in skia.gyp only when use_system_skia is set to 1 because system skia is always in release mode. When building with chromium version of skia (which is what we do now) this should not be defined and left to the skia headers to figure out whether to include debug code or not (they define SK_RELEASE only if NDEBUG was defined). BUG=http://b/6712716 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145789

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M build/common.gypi View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/common/unittest_main.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M skia/skia.gyp View 1 2 3 1 chunk +14 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
newt (away)
I've added reviewers for the following areas. Let me know if anyone else would be ...
8 years, 5 months ago (2012-07-02 19:00:26 UTC) #1
Mark Mentovai
> Since all Android builds are done in > release mode, we don't set NDEBUG ...
8 years, 5 months ago (2012-07-02 19:03:03 UTC) #2
Stephen White
On 2012/07/02 19:00:26, newt wrote: > I've added reviewers for the following areas. Let me ...
8 years, 5 months ago (2012-07-02 19:56:10 UTC) #3
greggman
lgtm
8 years, 5 months ago (2012-07-02 23:55:23 UTC) #4
newt (away)
> Maybe you should start using debug mode for this instead of introducing another > ...
8 years, 5 months ago (2012-07-03 01:03:46 UTC) #5
Mark Mentovai
newt@chromium.org wrote: > If your main concern is that the release_assertions variable spreads out > ...
8 years, 5 months ago (2012-07-03 14:15:20 UTC) #6
newt (away)
I changed common.gypi per your suggestion, mark. Everything else is the same (though I rebased).
8 years, 5 months ago (2012-07-03 22:54:25 UTC) #7
Mark Mentovai
LGTM http://codereview.chromium.org/10695047/diff/1005/skia/skia.gyp File skia/skia.gyp (right): http://codereview.chromium.org/10695047/diff/1005/skia/skia.gyp#newcode1092 skia/skia.gyp:1092: 'SK_BUILD_FOR_ANDROID_NDK', # Don't use non-NDK available stuff. I’d ...
8 years, 5 months ago (2012-07-04 01:59:51 UTC) #8
nilesh
On 2012/07/04 01:59:51, Mark Mentovai wrote: > LGTM > > http://codereview.chromium.org/10695047/diff/1005/skia/skia.gyp > File skia/skia.gyp (right): ...
8 years, 5 months ago (2012-07-09 15:08:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/10695047/19001
8 years, 5 months ago (2012-07-09 22:20:02 UTC) #10
newt (away)
http://codereview.chromium.org/10695047/diff/1005/skia/skia.gyp File skia/skia.gyp (right): http://codereview.chromium.org/10695047/diff/1005/skia/skia.gyp#newcode1092 skia/skia.gyp:1092: 'SK_BUILD_FOR_ANDROID_NDK', # Don't use non-NDK available stuff. On 2012/07/04 ...
8 years, 5 months ago (2012-07-09 22:20:12 UTC) #11
commit-bot: I haz the power
Change committed as 145789
8 years, 5 months ago (2012-07-09 23:37:14 UTC) #12
newt (away)
8 years, 5 months ago (2012-07-09 23:49:09 UTC) #13
Thanks for reviewing, Mark, Stephen, Greg, and Nilesh!

Powered by Google App Engine
This is Rietveld 408576698