| Index: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
|
| index 853d94dc7c116ab93063c9d5120ffc20b6527f40..c06e0f313b3e05e5522b98f37e393674c471479c 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
|
| @@ -189,6 +189,14 @@ bool AbstractAudioContext::hasPendingActivity() const
|
| return !m_isCleared;
|
| }
|
|
|
| +AudioDestinationNode* AbstractAudioContext::destination() const
|
| +{
|
| + // Cannot be called from the audio thread because this method touches objects managed by Oilpan,
|
| + // and the audio thread is not managed by Oilpan.
|
| + ASSERT(!isAudioThread());
|
| + return m_destinationNode.get();
|
| +}
|
| +
|
| void AbstractAudioContext::throwExceptionForClosedState(ExceptionState& exceptionState)
|
| {
|
| exceptionState.throwDOMException(InvalidStateError, "AudioContext has been closed.");
|
|
|