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

Issue 2651743007: Add metal view, shaders and renderer. (Closed)

Created:
3 years, 11 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

Add metal view, shaders and renderer. This CL submits standalone Metal view, renderer and shader. BUG=webrtc:7079 Review-Url: https://codereview.webrtc.org/2651743007 Cr-Commit-Position: refs/heads/master@{#16787} Committed: https://chromium.googlesource.com/external/webrtc/+/fc8c97f950a4fead4a5debe3c838942db1834010

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address comments from patchset 1 #

Patch Set 3 : Add metal renderer protocol and rename implementation classes #

Total comments: 21

Patch Set 4 : Address comments #

Total comments: 21

Patch Set 5 : Address comments #

Patch Set 6 : Fix compilation #

Patch Set 7 : Compile metal classes only for arm cpu's #

Patch Set 8 : Compile metal classes only for arm64 cpu's #

Patch Set 9 : Add CoreVideo.framework dependency. #

Patch Set 10 : Link metal libraries only for arm64cpu #

Total comments: 33

Patch Set 11 : Address comments #

Patch Set 12 : Use webrtc::VideoRotation enum for frame rotation #

Patch Set 13 : Address comments #

Patch Set 14 : Rename subfolder:metal->Metal #

Total comments: 6

Patch Set 15 : Address comments #

Patch Set 16 : Add whitespace that was removed with format #

Total comments: 28

Patch Set 17 : Move RTCVideoRender implementation to view #

Total comments: 22

Patch Set 18 : Minor fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -0 lines) Patch
M webrtc/sdk/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +16 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +41 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +319 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +107 lines, -0 lines 0 comments Download
A webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMTLVideoView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 91 (60 generated)
daniela-webrtc
First stab at implementing metal rendering. Please take a look and share your thoughts.
3 years, 11 months ago (2017-01-24 10:36:19 UTC) #3
magjed_webrtc
Looks good overall, I'm impressed! Some comments below, and I think we need to add ...
3 years, 11 months ago (2017-01-24 14:01:56 UTC) #4
kthelgason
Tried to have some semi-intelligent comments, although I'm way out of my comfort zone with ...
3 years, 11 months ago (2017-01-24 14:18:00 UTC) #5
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/1/webrtc/sdk/objc/Framework/Classes/metal/RTCMTLRenderer.mm File webrtc/sdk/objc/Framework/Classes/metal/RTCMTLRenderer.mm (right): https://codereview.webrtc.org/2651743007/diff/1/webrtc/sdk/objc/Framework/Classes/metal/RTCMTLRenderer.mm#newcode18 webrtc/sdk/objc/Framework/Classes/metal/RTCMTLRenderer.mm:18: float cubeVertexData[64] = On 2017/01/24 14:17:59, kthelgason wrote: > ...
3 years, 11 months ago (2017-01-25 08:46:19 UTC) #6
daniela-webrtc
I think this is pass the WIP phase now. I did further changes (added the ...
3 years, 10 months ago (2017-02-02 14:12:14 UTC) #10
kthelgason
The copyright header needs updating to 2017 and the includes need to be in the ...
3 years, 10 months ago (2017-02-03 09:17:23 UTC) #11
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/40001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn (right): https://codereview.webrtc.org/2651743007/diff/40001/webrtc/sdk/BUILD.gn#newcode54 webrtc/sdk/BUILD.gn:54: "objc/Framework/Headers/WebRTC/RTCMTLVideoView.h", On 2017/02/03 09:17:23, kthelgason wrote: > All of ...
3 years, 10 months ago (2017-02-07 10:51:09 UTC) #12
magjed_webrtc
Looks good! Comments are just nits, but please address before landing. lgtm https://codereview.webrtc.org/2651743007/diff/60001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn ...
3 years, 10 months ago (2017-02-07 12:12:41 UTC) #13
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/60001/webrtc/sdk/BUILD.gn File webrtc/sdk/BUILD.gn (right): https://codereview.webrtc.org/2651743007/diff/60001/webrtc/sdk/BUILD.gn#newcode318 webrtc/sdk/BUILD.gn:318: "objc/Framework/Headers/WebRTC/RTCMTLRenderer.h", On 2017/02/07 12:12:41, magjed_webrtc wrote: > Sort these. ...
3 years, 10 months ago (2017-02-07 13:36:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2651743007/100001
3 years, 10 months ago (2017-02-07 15:44:25 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/22477)
3 years, 10 months ago (2017-02-07 15:57:17 UTC) #19
daniela-webrtc
@Zeke please take a look and let me know what you think.
3 years, 10 months ago (2017-02-09 13:58:30 UTC) #53
tkchin_webrtc
first pass with some higher level comments https://codereview.webrtc.org/2651743007/diff/180001/webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h File webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h (right): https://codereview.webrtc.org/2651743007/diff/180001/webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h#newcode11 webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h:11: #import <Foundation/Foundation.h> ...
3 years, 10 months ago (2017-02-10 23:32:10 UTC) #55
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/180001/webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h File webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h (right): https://codereview.webrtc.org/2651743007/diff/180001/webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h#newcode11 webrtc/sdk/objc/Framework/Classes/metal/RTCNV12Renderer.h:11: #import <Foundation/Foundation.h> On 2017/02/10 23:32:10, tkchin_webrtc wrote: > nit: ...
3 years, 10 months ago (2017-02-13 12:32:07 UTC) #56
tkchin_webrtc
also nit: can we capitalize Metal in the directory name? Chuck, can you also make ...
3 years, 10 months ago (2017-02-14 00:23:57 UTC) #57
daniela-webrtc
On 2017/02/14 00:23:57, tkchin_webrtc wrote: > also nit: can we capitalize Metal in the directory ...
3 years, 10 months ago (2017-02-14 12:55:54 UTC) #58
Chuck
I'm not very familiar with Metal, so mostly looked at style things. https://codereview.webrtc.org/2651743007/diff/260001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m File webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m ...
3 years, 10 months ago (2017-02-15 14:54:05 UTC) #59
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/260001/webrtc/sdk/objc/Framework/Classes/Metal/RTCNV12Renderer.mm File webrtc/sdk/objc/Framework/Classes/Metal/RTCNV12Renderer.mm (right): https://codereview.webrtc.org/2651743007/diff/260001/webrtc/sdk/objc/Framework/Classes/Metal/RTCNV12Renderer.mm#newcode136 webrtc/sdk/objc/Framework/Classes/Metal/RTCNV12Renderer.mm:136: // This is very important, should not be removed. ...
3 years, 10 months ago (2017-02-16 15:38:00 UTC) #60
daniela-webrtc
3 years, 10 months ago (2017-02-16 15:38:05 UTC) #61
daniela-webrtc
On 2017/02/16 15:38:05, denicija-webrtc wrote: Zeke: I think I addressed most of your comments. To ...
3 years, 10 months ago (2017-02-16 15:59:08 UTC) #62
tkchin_webrtc
Really wish we could do an over the shoulder CR, would probably make things go ...
3 years, 10 months ago (2017-02-16 23:28:04 UTC) #63
daniela-webrtc
Thanks for the input, it was useful and on point. I've modified the CL and ...
3 years, 10 months ago (2017-02-20 15:17:08 UTC) #64
kthelgason
https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m File webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m (right): https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m#newcode56 webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m:56: return NO; nit: I'd prefer the return NO to ...
3 years, 10 months ago (2017-02-21 08:09:13 UTC) #65
tkchin_webrtc
lgtm let's land and address the renderer protocol discussion later https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm File webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm (right): https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm#newcode90 ...
3 years, 10 months ago (2017-02-22 00:22:30 UTC) #66
daniela-webrtc
https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm File webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm (right): https://codereview.webrtc.org/2651743007/diff/320001/webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm#newcode90 webrtc/sdk/objc/Framework/Classes/Metal/RTCMTLNV12Renderer.mm:90: float4 out = float4(y + 1.403 * uv.y, y ...
3 years, 10 months ago (2017-02-22 14:50:23 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2651743007/340001
3 years, 10 months ago (2017-02-22 16:11:48 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/21658)
3 years, 10 months ago (2017-02-22 16:30:18 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2651743007/340001
3 years, 10 months ago (2017-02-23 08:43:48 UTC) #86
commit-bot: I haz the power
Committed patchset #18 (id:340001) as https://chromium.googlesource.com/external/webrtc/+/fc8c97f950a4fead4a5debe3c838942db1834010
3 years, 10 months ago (2017-02-23 08:46:16 UTC) #89
daniela-webrtc
A revert of this CL (patchset #18 id:340001) has been created in https://codereview.webrtc.org/2711003004/ by denicija@webrtc.org. ...
3 years, 10 months ago (2017-02-23 09:14:50 UTC) #90
tkchin_webrtc
3 years, 10 months ago (2017-02-24 01:31:19 UTC) #91
Message was sent while issue was closed.
On 2017/02/23 09:14:50, denicija-webrtc wrote:
> A revert of this CL (patchset #18 id:340001) has been created in
> https://codereview.webrtc.org/2711003004/ by mailto:denicija@webrtc.org.
> 
> The reason for reverting is: Reverting due to breakage in the Google3 import.

So close! Looking forward to seeing this land.
Do you have a link to the google3 breakage? I'm curious to know since the stuff
I'm working on will almost certainly break it too.

Powered by Google App Engine
This is Rietveld 408576698