| Summary: | Adding previewCaptureLayer to AVVideoCaptureSource | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Matthew Daiter <mdaiter> | ||||||
| Component: | WebCore Misc. | Assignee: | Matthew Daiter <mdaiter> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bfulgham, commit-queue, eric.carlson, jonlee, mdaiter, webkit-bug-importer, webkit.review.bot | ||||||
| Priority: | P2 | Keywords: | InRadar, PlatformOnly | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 147014 | ||||||||
| Attachments: |
|
||||||||
|
Description
Matthew Daiter
2015-07-16 13:54:59 PDT
Created attachment 256921 [details]
Patch
Comment on attachment 256921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256921&action=review > Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h:49 > + virtual AVCaptureVideoPreviewLayer* previewLayer() { return m_videoPreviewLayer.get(); } Does this need to be virtual? > Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h:65 > + WTF::RetainPtr<AVCaptureVideoPreviewLayer> m_videoPreviewLayer; "WTF::" isn't needed. > Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:224 > + m_videoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:session()]; You need to use adoptNS. Created attachment 256923 [details]
Patch
Comment on attachment 256921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256921&action=review >> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h:49 >> + virtual AVCaptureVideoPreviewLayer* previewLayer() { return m_videoPreviewLayer.get(); } > > Does this need to be virtual? Fixed. >> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h:65 >> + WTF::RetainPtr<AVCaptureVideoPreviewLayer> m_videoPreviewLayer; > > "WTF::" isn't needed. Fixed. >> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:224 >> + m_videoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:session()]; > > You need to use adoptNS. Fixed. Comment on attachment 256923 [details] Patch Clearing flags on attachment: 256923 Committed r187208: <http://trac.webkit.org/changeset/187208> All reviewed patches have been landed. Closing bug. |