OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "HRTFDatabaseLoader.h" | 50 #include "HRTFDatabaseLoader.h" |
51 #include "HRTFPanner.h" | 51 #include "HRTFPanner.h" |
52 #include "OfflineAudioCompletionEvent.h" | 52 #include "OfflineAudioCompletionEvent.h" |
53 #include "OfflineAudioDestinationNode.h" | 53 #include "OfflineAudioDestinationNode.h" |
54 #include "OscillatorNode.h" | 54 #include "OscillatorNode.h" |
55 #include "PannerNode.h" | 55 #include "PannerNode.h" |
56 #include "ScriptCallStack.h" | 56 #include "ScriptCallStack.h" |
57 #include "ScriptProcessorNode.h" | 57 #include "ScriptProcessorNode.h" |
58 #include "WaveShaperNode.h" | 58 #include "WaveShaperNode.h" |
59 #include "WaveTable.h" | 59 #include "WaveTable.h" |
60 #include "WebCoreMemoryInstrumentation.h" | |
61 #include <wtf/MemoryInstrumentationHashSet.h> | |
62 #include <wtf/MemoryInstrumentationVector.h> | |
63 | 60 |
64 #if ENABLE(MEDIA_STREAM) | 61 #if ENABLE(MEDIA_STREAM) |
65 #include "MediaStream.h" | 62 #include "MediaStream.h" |
66 #include "MediaStreamAudioDestinationNode.h" | 63 #include "MediaStreamAudioDestinationNode.h" |
67 #include "MediaStreamAudioSourceNode.h" | 64 #include "MediaStreamAudioSourceNode.h" |
68 #endif | 65 #endif |
69 | 66 |
70 #if ENABLE(VIDEO) | 67 #if ENABLE(VIDEO) |
71 #include "HTMLMediaElement.h" | 68 #include "HTMLMediaElement.h" |
72 #include "MediaElementAudioSourceNode.h" | 69 #include "MediaElementAudioSourceNode.h" |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 void AudioContext::incrementActiveSourceCount() | 960 void AudioContext::incrementActiveSourceCount() |
964 { | 961 { |
965 atomicIncrement(&m_activeSourceCount); | 962 atomicIncrement(&m_activeSourceCount); |
966 } | 963 } |
967 | 964 |
968 void AudioContext::decrementActiveSourceCount() | 965 void AudioContext::decrementActiveSourceCount() |
969 { | 966 { |
970 atomicDecrement(&m_activeSourceCount); | 967 atomicDecrement(&m_activeSourceCount); |
971 } | 968 } |
972 | 969 |
973 void AudioContext::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
974 { | |
975 AutoLocker locker(const_cast<AudioContext*>(this)); | |
976 | |
977 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Audio); | |
978 ActiveDOMObject::reportMemoryUsage(memoryObjectInfo); | |
979 info.addMember(m_destinationNode, "destinationNode"); | |
980 info.addMember(m_listener, "listener"); | |
981 info.addMember(m_finishedNodes, "finishedNodes"); | |
982 info.addMember(m_referencedNodes, "referencedNodes"); | |
983 info.addMember(m_nodesMarkedForDeletion, "nodesMarkedForDeletion"); | |
984 info.addMember(m_nodesToDelete, "nodesToDelete"); | |
985 info.addMember(m_dirtySummingJunctions, "dirtySummingJunctions"); | |
986 info.addMember(m_dirtyAudioNodeOutputs, "dirtyAudioNodeOutputs"); | |
987 info.addMember(m_automaticPullNodes, "automaticPullNodes"); | |
988 info.addMember(m_renderingAutomaticPullNodes, "renderingAutomaticPullNodes")
; | |
989 info.addMember(m_contextGraphMutex, "contextGraphMutex"); | |
990 info.addMember(m_deferredFinishDerefList, "deferredFinishDerefList"); | |
991 info.addMember(m_hrtfDatabaseLoader, "hrtfDatabaseLoader"); | |
992 info.addMember(m_eventTargetData, "eventTargetData"); | |
993 info.addMember(m_renderTarget, "renderTarget"); | |
994 info.addMember(m_audioDecoder, "audioDecoder"); | |
995 } | |
996 | |
997 } // namespace WebCore | 970 } // namespace WebCore |
998 | 971 |
999 #endif // ENABLE(WEB_AUDIO) | 972 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |