projects
/
framework
/
web
/
webkit-efl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WebAudio task shouldn't be running on suspend to reduce usage of CPU.
[framework/web/webkit-efl.git]
/
Source
/
WebCore
/
Modules
/
webaudio
/
DefaultAudioDestinationNode.cpp
diff --git
a/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
b/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
index
8c43329
..
369dd9e
100644
(file)
--- a/
Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
+++ b/
Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
@@
-97,6
+97,14
@@
void DefaultAudioDestinationNode::startRendering()
m_destination->start();
}
+#if ENABLE(TIZEN_WEB_AUDIO)
+void DefaultAudioDestinationNode::pauseRendering()
+{
+ ASSERT(isInitialized());
+ if (isInitialized())
+ m_destination->stop();
+}
+#endif
} // namespace WebCore
#endif // ENABLE(WEB_AUDIO)