WebAudio task shouldn't be running on suspend to reduce usage of CPU.
authorkeonho07.kim <keonho07.kim@samsung.com>
Wed, 10 Apr 2013 17:53:01 +0000 (02:53 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 12 Apr 2013 03:16:28 +0000 (12:16 +0900)
commit7e9ba6264d512cfe2b55e097ac998d5f0c6d805b
treecb271148dee4db9f6616ff59e76328e86c7af825
parentabbb72c83e3455b4ddcb3239b2cd23e013dcce4f
WebAudio task shouldn't be running on suspend to reduce usage of CPU.

[Title] WebAudio task shouldn't be running on suspend to reduce usage of CPU.
[Problem] webKitWebAudioSrcLoop is running even if browser is gone to suspending.
[Cause] Task of gstreamer is never been made stop to keep pipeline is running.
[Solution] Implement pauseRendering() to make pause tast of gstreamer.

Change-Id: I05f60f415c8a10226a97885130afa0e005ea5ec8
13 files changed:
Source/WebCore/Modules/webaudio/AudioBufferSourceNode.cpp
Source/WebCore/Modules/webaudio/AudioContext.cpp [changed mode: 0644->0755]
Source/WebCore/Modules/webaudio/AudioContext.h
Source/WebCore/Modules/webaudio/AudioDestinationNode.cpp
Source/WebCore/Modules/webaudio/AudioDestinationNode.h
Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp
Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp
Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.h
Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.h
Source/WebCore/Modules/webaudio/ScriptProcessorNode.cpp
Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.h
Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp