OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 m_pendingRemoveStart(-1), | 135 m_pendingRemoveStart(-1), |
136 m_pendingRemoveEnd(-1), | 136 m_pendingRemoveEnd(-1), |
137 m_removeAsyncPartRunner(AsyncMethodRunner<SourceBuffer>::create( | 137 m_removeAsyncPartRunner(AsyncMethodRunner<SourceBuffer>::create( |
138 this, | 138 this, |
139 &SourceBuffer::removeAsyncPart)) { | 139 &SourceBuffer::removeAsyncPart)) { |
140 BLINK_SBLOG << __func__ << " this=" << this; | 140 BLINK_SBLOG << __func__ << " this=" << this; |
141 | 141 |
142 DCHECK(m_webSourceBuffer); | 142 DCHECK(m_webSourceBuffer); |
143 DCHECK(m_source); | 143 DCHECK(m_source); |
144 DCHECK(m_source->mediaElement()); | 144 DCHECK(m_source->mediaElement()); |
145 ThreadState::current()->registerPreFinalizer(this); | |
146 m_audioTracks = AudioTrackList::create(*m_source->mediaElement()); | 145 m_audioTracks = AudioTrackList::create(*m_source->mediaElement()); |
147 m_videoTracks = VideoTrackList::create(*m_source->mediaElement()); | 146 m_videoTracks = VideoTrackList::create(*m_source->mediaElement()); |
148 m_webSourceBuffer->setClient(this); | 147 m_webSourceBuffer->setClient(this); |
149 } | 148 } |
150 | 149 |
151 SourceBuffer::~SourceBuffer() { | 150 SourceBuffer::~SourceBuffer() { |
152 BLINK_SBLOG << __func__ << " this=" << this; | 151 BLINK_SBLOG << __func__ << " this=" << this; |
153 } | 152 } |
154 | 153 |
155 void SourceBuffer::dispose() { | 154 void SourceBuffer::dispose() { |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 visitor->trace(m_asyncEventQueue); | 1305 visitor->trace(m_asyncEventQueue); |
1307 visitor->trace(m_appendBufferAsyncPartRunner); | 1306 visitor->trace(m_appendBufferAsyncPartRunner); |
1308 visitor->trace(m_removeAsyncPartRunner); | 1307 visitor->trace(m_removeAsyncPartRunner); |
1309 visitor->trace(m_audioTracks); | 1308 visitor->trace(m_audioTracks); |
1310 visitor->trace(m_videoTracks); | 1309 visitor->trace(m_videoTracks); |
1311 EventTargetWithInlineData::trace(visitor); | 1310 EventTargetWithInlineData::trace(visitor); |
1312 SuspendableObject::trace(visitor); | 1311 SuspendableObject::trace(visitor); |
1313 } | 1312 } |
1314 | 1313 |
1315 } // namespace blink | 1314 } // namespace blink |
OLD | NEW |