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

Issue 2673573003: Modify build scripts for ios .framework to compile metal shaders. (Closed)

Created:
3 years, 10 months ago by daniela-webrtc
Modified:
3 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Modify build scripts for ios .framework to compile metal shaders. - Add compile script that compiles given metal shader file and produces .metallib binary - Add gn template for metal library compilation - Modify the .framework target in build file to bundle metallib BUG=webrtc:7079

Patch Set 1 #

Total comments: 17

Patch Set 2 : Address comments from patchset 1 #

Patch Set 3 : Bundle metal for ios only #

Total comments: 6

Patch Set 4 : Address comments from patchset 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -1 line) Patch
M webrtc/sdk/BUILD.gn View 1 2 3 6 chunks +26 lines, -1 line 0 comments Download
M webrtc/sdk/objc/Framework/Headers/WebRTC/WebRTC.h View 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/compile_metal_lib.py View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/metal.gni View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
daniela-webrtc
Changes need to enable compilation of metal .shader files in webrtc. Please take a look. ...
3 years, 10 months ago (2017-02-02 12:05:32 UTC) #3
kjellander_webrtc
https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py File webrtc/sdk/objc/compile_metal_lib.py (right): https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py#newcode1 webrtc/sdk/objc/compile_metal_lib.py:1: # Copyright 2016 The WebRTC project authors. All Rights ...
3 years, 10 months ago (2017-02-02 12:20:43 UTC) #4
kthelgason
Great work, this seems really clean to me. https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py File webrtc/sdk/objc/compile_metal_lib.py (right): https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py#newcode43 webrtc/sdk/objc/compile_metal_lib.py:43: toolout ...
3 years, 10 months ago (2017-02-02 12:30:21 UTC) #5
magjed_webrtc
This lgtm as well. Only small comment is that you should update the CL description: ...
3 years, 10 months ago (2017-02-02 12:48:16 UTC) #6
daniela-webrtc
https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py File webrtc/sdk/objc/compile_metal_lib.py (right): https://codereview.webrtc.org/2673573003/diff/1/webrtc/sdk/objc/compile_metal_lib.py#newcode1 webrtc/sdk/objc/compile_metal_lib.py:1: # Copyright 2016 The WebRTC project authors. All Rights ...
3 years, 10 months ago (2017-02-02 15:11:44 UTC) #8
kthelgason
lgtm given you address my comments 🤠 https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn (right): https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn#newcode52 webrtc/sdk/BUILD.gn:52: "objc/Framework/Classes/metal/RTCMTLVideoView.m", Is ...
3 years, 10 months ago (2017-02-02 15:22:36 UTC) #9
daniela-webrtc
https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn (right): https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn#newcode52 webrtc/sdk/BUILD.gn:52: "objc/Framework/Classes/metal/RTCMTLVideoView.m", On 2017/02/02 15:22:36, kthelgason wrote: > Is it ...
3 years, 10 months ago (2017-02-02 15:36:54 UTC) #11
kjellander_webrtc
lgtm with the last comment fixed. https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/objc/compile_metal_lib.py File webrtc/sdk/objc/compile_metal_lib.py (right): https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/objc/compile_metal_lib.py#newcode57 webrtc/sdk/objc/compile_metal_lib.py:57: sys.exit(toolout.returncode) On 2017/02/02 ...
3 years, 10 months ago (2017-02-03 09:03:17 UTC) #12
daniela-webrtc
https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn (right): https://codereview.webrtc.org/2673573003/diff/40001/webrtc/sdk/BUILD.gn#newcode52 webrtc/sdk/BUILD.gn:52: "objc/Framework/Classes/metal/RTCMTLVideoView.m", On 2017/02/02 15:22:36, kthelgason wrote: > Is it ...
3 years, 10 months ago (2017-02-07 10:43:59 UTC) #13
kjellander_webrtc
shall we submit this?
3 years, 10 months ago (2017-02-15 07:26:42 UTC) #14
daniela-webrtc
On 2017/02/15 07:26:42, kjellander_webrtc wrote: > shall we submit this? Not yet. The CL should ...
3 years, 10 months ago (2017-02-15 08:36:05 UTC) #15
daniela-webrtc
3 years, 10 months ago (2017-02-16 14:38:29 UTC) #16
Message was sent while issue was closed.
On 2017/02/15 08:36:05, denicija-webrtc wrote:
> On 2017/02/15 07:26:42, kjellander_webrtc wrote:
> > shall we submit this?
> 
> Not yet. The CL should be merged after
https://codereview.webrtc.org/2651743007/
> Also, we've started looking into run-time compilation of the shaders so this
CL
> *might* be closed. Is this blocking some further work?

I've closed this issue as is no longer relevant as we will use (for now) run
time compilation of shaders and that doesn't require any changes in the build
scripts.

Powered by Google App Engine
This is Rietveld 408576698