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

Issue 2002423002: [GN] Add support for disabling opts via SK_BUILD_NO_OPTS define. (Closed)

Created:
4 years, 7 months ago by sdefresne
Modified:
4 years, 6 months ago
Reviewers:
mtklein_C, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

[GN] Add support for disabling opts via SK_BUILD_NO_OPTS define. When targetting iOS and using gyp to generate the build files, it is not possible to select files to build depending on the architecture. Due to that, the skia code was disabling all optimisation when SK_BUILD_FOR_IOS was defined. Since it is possible to select the correct optimised version when using gn, this pessimisation is hurting the build. Introduce a new define to disable the optimisation SK_BUILD_NO_OPTS. It will be used by Chromium when building skia for iOS with gyp but not gn. Define SK_BUILD_NO_OPTS along-side SK_BUILD_FOR_IOS for all files that look like build configuration (Xcode projects, gyp configuration files, public.bzl) in order to avoid introducing breakage on those builds. BUG=607933 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2002423002 Committed: https://skia.googlesource.com/skia/+/e3fa811657ecf4ab694d026752a81080c6b10611

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -13 lines) Patch
M bench/SkBlend_optsBench.cpp View 1 chunk +1 line, -1 line 0 comments Download
M experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig View 1 chunk +1 line, -1 line 0 comments Download
M experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig View 1 chunk +1 line, -1 line 0 comments Download
M experimental/iOSSampleApp/iOSSampleApp.xcodeproj/project.pbxproj View 2 chunks +2 lines, -0 lines 0 comments Download
M gyp/common_conditions.gypi View 1 chunk +5 lines, -0 lines 0 comments Download
M include/core/SkPreConfig.h View 2 chunks +8 lines, -6 lines 0 comments Download
M public.bzl View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkOpts.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M tests/SkBlend_optsTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
sdefresne
Please take a look. This needs https://codereview.chromium.org/2008853002/ to land first in Chromium repository. Once both ...
4 years, 7 months ago (2016-05-24 09:33:15 UTC) #4
mtklein
Are iOS GYP and GN builds going to both be active for long (more than ...
4 years, 7 months ago (2016-05-24 12:33:26 UTC) #6
sdefresne
On 2016/05/24 12:33:26, mtklein wrote: > Are iOS GYP and GN builds going to both ...
4 years, 7 months ago (2016-05-24 13:37:09 UTC) #7
mtklein
On 2016/05/24 13:37:09, sdefresne wrote: > On 2016/05/24 12:33:26, mtklein wrote: > > Are iOS ...
4 years, 7 months ago (2016-05-24 13:46:39 UTC) #8
sdefresne
On 2016/05/24 13:46:39, mtklein wrote: > On 2016/05/24 13:37:09, sdefresne wrote: > > On 2016/05/24 ...
4 years, 6 months ago (2016-05-24 15:36:23 UTC) #9
sdefresne
On 2016/05/24 15:36:23, sdefresne wrote: > On 2016/05/24 13:46:39, mtklein wrote: > > On 2016/05/24 ...
4 years, 6 months ago (2016-05-24 15:52:20 UTC) #10
mtklein_C
lgtm This plan sounds good to me. I've also realized that this allows us to ...
4 years, 6 months ago (2016-05-24 15:59:15 UTC) #12
sdefresne
On 2016/05/24 15:59:15, mtklein_C wrote: > lgtm > > This plan sounds good to me. ...
4 years, 6 months ago (2016-05-24 16:03:02 UTC) #13
sdefresne
bsalomon: ping?
4 years, 6 months ago (2016-05-28 12:31:50 UTC) #14
sdefresne
-bsalomon, +reed: changing OWNERS as bsalomon is unresponsive. reed: can you do an OWNERS review? ...
4 years, 6 months ago (2016-06-01 07:54:22 UTC) #16
reed1
lgtm
4 years, 6 months ago (2016-06-01 13:46:05 UTC) #17
sdefresne
On 2016/06/01 13:46:05, reed1 wrote: > lgtm Thank you. How should I land this CL? ...
4 years, 6 months ago (2016-06-01 13:50:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002423002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002423002/1
4 years, 6 months ago (2016-06-01 13:54:39 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 14:09:01 UTC) #22
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/e3fa811657ecf4ab694d026752a81080c6b10611

Powered by Google App Engine
This is Rietveld 408576698