Changeset 220045 in webkit
- Timestamp:
- Jul 29, 2017, 12:36:47 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h (modified) (3 diffs)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm (modified) (4 diffs)
-
platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h (modified) (4 diffs)
-
platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220044 r220045 1 2017-07-29 Filip Pizlo <fpizlo@apple.com> 2 3 Unreviewed, rollout r220044 because it set the bots on fire. 4 5 It seems that the "-Wunguarded-availability-new" pragma is not widely supported. So, a bunch of the 6 Mac bots are now unable to build and that includes EWS. 7 8 Fixing by rolling it out. 9 10 * platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h: 11 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: 12 * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: 13 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::setHasAvailableAudioSample): 14 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::addAudioRenderer): 15 (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::removeAudioRenderer): 16 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h: 17 * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm: 18 (-[WebAVSampleBufferErrorListener beginObservingRenderer:]): 19 (-[WebAVSampleBufferErrorListener stopObservingRenderer:]): 20 (-[WebAVSampleBufferErrorListener observeValueForKeyPath:ofObject:change:context:]): 21 (WebCore::SourceBufferPrivateAVFObjC::trackDidChangeEnabled): 22 (WebCore::SourceBufferPrivateAVFObjC::rendererDidReceiveError): 23 (WebCore::SourceBufferPrivateAVFObjC::flush): 24 1 25 2017-07-29 Dan Bernstein <mitz@apple.com> 2 26 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.h
r220044 r220045 55 55 // SourceBufferPrivateAVFObjCErrorClient 56 56 void layerDidReceiveError(AVSampleBufferDisplayLayer *, NSError *, bool& shouldIgnore) override; 57 #pragma clang diagnostic push58 #pragma clang diagnostic ignored "-Wunguarded-availability-new"59 57 void rendererDidReceiveError(AVSampleBufferAudioRenderer *, NSError *, bool& shouldIgnore) override; 60 #pragma clang diagnostic pop61 58 62 59 void addSourceBuffer(SourceBufferPrivateAVFObjC*); -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h
r220044 r220045 72 72 static MediaPlayer::SupportsType supportsType(const MediaEngineSupportParameters&); 73 73 74 #pragma clang diagnostic push75 #pragma clang diagnostic ignored "-Wunguarded-availability-new"76 74 void addAudioRenderer(AVSampleBufferAudioRenderer*); 77 75 void removeAudioRenderer(AVSampleBufferAudioRenderer*); 78 #pragma clang diagnostic pop79 76 80 77 MediaPlayer::NetworkState networkState() const override; … … 89 86 void setHasAvailableVideoFrame(bool); 90 87 bool hasAvailableVideoFrame() const override; 91 #pragma clang diagnostic push92 #pragma clang diagnostic ignored "-Wunguarded-availability-new"93 88 void setHasAvailableAudioSample(AVSampleBufferAudioRenderer*, bool); 94 #pragma clang diagnostic pop95 89 bool allRenderersHaveAvailableSamples() const { return m_allRenderersHaveAvailableSamples; } 96 90 void updateAllRenderersHaveAvailableSamples(); … … 259 253 bool hasAudibleSample { false }; 260 254 }; 261 #pragma clang diagnostic push262 #pragma clang diagnostic ignored "-Wunguarded-availability-new"263 255 HashMap<RetainPtr<AVSampleBufferAudioRenderer>, AudioRendererProperties> m_sampleBufferAudioRendererMap; 264 256 RetainPtr<AVSampleBufferRenderSynchronizer> m_synchronizer; 265 #pragma clang diagnostic pop266 257 RetainPtr<id> m_timeJumpedObserver; 267 258 RetainPtr<id> m_durationObserver; -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
r220044 r220045 67 67 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVAsset) 68 68 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVURLAsset) 69 #pragma clang diagnostic push70 #pragma clang diagnostic ignored "-Wunguarded-availability-new"71 69 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVSampleBufferAudioRenderer) 72 #pragma clang diagnostic pop73 70 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVSampleBufferDisplayLayer) 74 #pragma clang diagnostic push75 #pragma clang diagnostic ignored "-Wunguarded-availability-new"76 71 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVSampleBufferRenderSynchronizer) 77 #pragma clang diagnostic pop78 72 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVStreamDataParser) 79 73 SOFT_LINK_CLASS_OPTIONAL(AVFoundation, AVStreamSession); … … 800 794 } 801 795 802 #pragma clang diagnostic push803 #pragma clang diagnostic ignored "-Wunguarded-availability-new"804 796 void MediaPlayerPrivateMediaSourceAVFObjC::setHasAvailableAudioSample(AVSampleBufferAudioRenderer* renderer, bool flag) 805 #pragma clang diagnostic pop806 797 { 807 798 auto iter = m_sampleBufferAudioRendererMap.find(renderer); … … 1005 996 } 1006 997 1007 #pragma clang diagnostic push1008 #pragma clang diagnostic ignored "-Wunguarded-availability-new"1009 998 void MediaPlayerPrivateMediaSourceAVFObjC::addAudioRenderer(AVSampleBufferAudioRenderer* audioRenderer) 1010 #pragma clang diagnostic pop1011 999 { 1012 1000 if (m_sampleBufferAudioRendererMap.contains(audioRenderer)) … … 1023 1011 } 1024 1012 1025 #pragma clang diagnostic push1026 #pragma clang diagnostic ignored "-Wunguarded-availability-new"1027 1013 void MediaPlayerPrivateMediaSourceAVFObjC::removeAudioRenderer(AVSampleBufferAudioRenderer* audioRenderer) 1028 #pragma clang diagnostic pop1029 1014 { 1030 1015 auto iter = m_sampleBufferAudioRendererMap.find(audioRenderer); -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.h
r220044 r220045 69 69 virtual ~SourceBufferPrivateAVFObjCErrorClient() { } 70 70 virtual void layerDidReceiveError(AVSampleBufferDisplayLayer *, NSError *, bool& shouldIgnore) = 0; 71 #pragma clang diagnostic push72 #pragma clang diagnostic ignored "-Wunguarded-availability-new"73 71 virtual void rendererDidReceiveError(AVSampleBufferAudioRenderer *, NSError *, bool& shouldIgnore) = 0; 74 #pragma clang diagnostic pop75 72 }; 76 73 … … 113 110 void unregisterForErrorNotifications(SourceBufferPrivateAVFObjCErrorClient*); 114 111 void layerDidReceiveError(AVSampleBufferDisplayLayer *, NSError *); 115 #pragma clang diagnostic push116 #pragma clang diagnostic ignored "-Wunguarded-availability-new"117 112 void rendererDidReceiveError(AVSampleBufferAudioRenderer *, NSError *); 118 #pragma clang diagnostic pop119 113 120 114 void setVideoLayer(AVSampleBufferDisplayLayer*); … … 146 140 147 141 void flushVideo(); 148 #pragma clang diagnostic push149 #pragma clang diagnostic ignored "-Wunguarded-availability-new"150 142 void flush(AVSampleBufferAudioRenderer *); 151 #pragma clang diagnostic pop152 143 153 144 WeakPtr<SourceBufferPrivateAVFObjC> createWeakPtr() { return m_weakFactory.createWeakPtr(); } … … 163 154 RetainPtr<AVAsset> m_asset; 164 155 RetainPtr<AVSampleBufferDisplayLayer> m_displayLayer; 165 #pragma clang diagnostic push166 #pragma clang diagnostic ignored "-Wunguarded-availability-new"167 156 HashMap<int, RetainPtr<AVSampleBufferAudioRenderer>> m_audioRenderers; 168 #pragma clang diagnostic pop169 157 RetainPtr<WebAVStreamDataParserListener> m_delegate; 170 158 RetainPtr<WebAVSampleBufferErrorListener> m_errorListener; -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
r220044 r220045 68 68 SOFT_LINK_CLASS(AVFoundation, AVAssetTrack) 69 69 SOFT_LINK_CLASS(AVFoundation, AVStreamDataParser) 70 #pragma clang diagnostic push71 #pragma clang diagnostic ignored "-Wunguarded-availability-new"72 70 SOFT_LINK_CLASS(AVFoundation, AVSampleBufferAudioRenderer) 73 #pragma clang diagnostic pop74 71 SOFT_LINK_CLASS(AVFoundation, AVSampleBufferDisplayLayer) 75 72 SOFT_LINK_CLASS(AVFoundation, AVStreamSession) … … 225 222 WebCore::SourceBufferPrivateAVFObjC* _parent; 226 223 Vector<RetainPtr<AVSampleBufferDisplayLayer>> _layers; 227 #pragma clang diagnostic push228 #pragma clang diagnostic ignored "-Wunguarded-availability-new"229 224 Vector<RetainPtr<AVSampleBufferAudioRenderer>> _renderers; 230 #pragma clang diagnostic pop231 225 } 232 226 … … 235 229 - (void)beginObservingLayer:(AVSampleBufferDisplayLayer *)layer; 236 230 - (void)stopObservingLayer:(AVSampleBufferDisplayLayer *)layer; 237 #pragma clang diagnostic push238 #pragma clang diagnostic ignored "-Wunguarded-availability-new"239 231 - (void)beginObservingRenderer:(AVSampleBufferAudioRenderer *)renderer; 240 232 - (void)stopObservingRenderer:(AVSampleBufferAudioRenderer *)renderer; 241 #pragma clang diagnostic pop242 233 @end 243 234 … … 302 293 } 303 294 304 #pragma clang diagnostic push305 #pragma clang diagnostic ignored "-Wunguarded-availability-new"306 295 - (void)beginObservingRenderer:(AVSampleBufferAudioRenderer*)renderer 307 296 { 308 #pragma clang diagnostic pop309 297 ASSERT(_parent); 310 298 ASSERT(!_renderers.contains(renderer)); … … 314 302 } 315 303 316 #pragma clang diagnostic push317 #pragma clang diagnostic ignored "-Wunguarded-availability-new"318 304 - (void)stopObservingRenderer:(AVSampleBufferAudioRenderer*)renderer 319 #pragma clang diagnostic pop320 305 { 321 306 ASSERT(_parent); … … 353 338 354 339 } else if ([object isKindOfClass:getAVSampleBufferAudioRendererClass()]) { 355 #pragma clang diagnostic push356 #pragma clang diagnostic ignored "-Wunguarded-availability-new"357 340 RetainPtr<AVSampleBufferAudioRenderer> renderer = (AVSampleBufferAudioRenderer *)object; 358 #pragma clang diagnostic pop359 341 RetainPtr<NSError> error = [change valueForKey:NSKeyValueChangeNewKey]; 360 342 … … 812 794 813 795 if (!track->enabled()) { 814 #pragma clang diagnostic push815 #pragma clang diagnostic ignored "-Wunguarded-availability-new"816 796 RetainPtr<AVSampleBufferAudioRenderer> renderer = m_audioRenderers.get(trackID); 817 #pragma clang diagnostic pop818 797 [m_parser setShouldProvideMediaData:NO forTrackID:trackID]; 819 798 if (m_mediaSource) … … 821 800 } else { 822 801 [m_parser setShouldProvideMediaData:YES forTrackID:trackID]; 823 #pragma clang diagnostic push824 #pragma clang diagnostic ignored "-Wunguarded-availability-new"825 802 RetainPtr<AVSampleBufferAudioRenderer> renderer; 826 #pragma clang diagnostic pop827 803 if (!m_audioRenderers.contains(trackID)) { 828 804 renderer = adoptNS([allocAVSampleBufferAudioRendererInstance() init]); … … 914 890 } 915 891 916 #pragma clang diagnostic push917 #pragma clang diagnostic ignored "-Wunguarded-availability-new"918 892 void SourceBufferPrivateAVFObjC::rendererDidReceiveError(AVSampleBufferAudioRenderer *renderer, NSError *error) 919 #pragma clang diagnostic pop920 893 { 921 894 LOG(MediaSource, "SourceBufferPrivateAVFObjC::rendererDidReceiveError(%p): renderer(%p), error(%@)", this, renderer, [error description]); … … 966 939 } 967 940 968 #pragma clang diagnostic push969 #pragma clang diagnostic ignored "-Wunguarded-availability-new"970 941 void SourceBufferPrivateAVFObjC::flush(AVSampleBufferAudioRenderer *renderer) 971 #pragma clang diagnostic pop972 942 { 973 943 [renderer flush];
Note:
See TracChangeset
for help on using the changeset viewer.