Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1159)

Unified Diff: Source/core/platform/audio/FFTFrame.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/audio/FFTFrame.h ('k') | Source/core/platform/audio/HRTFDatabase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/FFTFrame.cpp
diff --git a/Source/core/platform/audio/FFTFrame.cpp b/Source/core/platform/audio/FFTFrame.cpp
index 1f2bf6a70bf3e316bb910a8cc9c00b08387e1f1c..a1a0a50dacebcb6d903644c602d1448c8029b22b 100644
--- a/Source/core/platform/audio/FFTFrame.cpp
+++ b/Source/core/platform/audio/FFTFrame.cpp
@@ -37,16 +37,10 @@
#endif
#include "Logging.h"
-#include "PlatformMemoryInstrumentation.h"
#include <wtf/Complex.h>
#include <wtf/MathExtras.h>
-#include <wtf/MemoryObjectInfo.h>
#include <wtf/OwnPtr.h>
-#if !USE_ACCELERATE_FFT && USE(WEBAUDIO_FFMPEG)
-void reportMemoryUsage(const RDFTContext* const&, WTF::MemoryObjectInfo*);
-#endif // USE(WEBAUDIO_FFMPEG)
-
namespace WebCore {
void FFTFrame::doPaddedFFT(const float* data, size_t dataSize)
@@ -254,44 +248,6 @@ void FFTFrame::addConstantGroupDelay(double sampleFrameDelay)
}
}
-void FFTFrame::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
-{
- MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::AudioSharedData);
-#if USE_ACCELERATE_FFT
- info.addMember(m_frame, "frame");
- info.addMember(m_realData, "realData");
- info.addMember(m_imagData, "imagData");
-#else // !USE_ACCELERATE_FFT
-
-#if USE(WEBAUDIO_MKL)
- info.addMember(m_handle, "handle");
- info.addMember(m_complexData, "complexData");
- info.addMember(m_realData, "realData");
- info.addMember(m_imagData, "imagData");
-#endif // USE(WEBAUDIO_MKL)
-
-#if USE(WEBAUDIO_FFMPEG)
- info.addMember(m_forwardContext, "forwardContext");
- info.addMember(m_inverseContext, "inverseContext");
- info.addMember(m_complexData, "complexData");
- info.addMember(m_realData, "realData");
- info.addMember(m_imagData, "imagData");
-#endif // USE(WEBAUDIO_FFMPEG)
-
-#if USE(WEBAUDIO_IPP)
- int size = 0;
- ippsDFTGetBufSize_R_32f(m_DFTSpec, &size);
- info.addRawBuffer(m_buffer, size * sizeof(Ipp8u), "buffer");
- ippsDFTGetSize_R_32f(m_FFTSize, IPP_FFT_NODIV_BY_ANY, ippAlgHintFast, &size, 0, 0);
- info.addRawBuffer(m_DFTSpec, size, "DFTSpec");
- info.addMember(m_complexData, "complexData");
- info.addMember(m_realData, "realData");
- info.addMember(m_imagData, "imagData");
-#endif // USE(WEBAUDIO_IPP)
-
-#endif // !USE_ACCELERATE_FFT
-}
-
#ifndef NDEBUG
void FFTFrame::print()
{
« no previous file with comments | « Source/core/platform/audio/FFTFrame.h ('k') | Source/core/platform/audio/HRTFDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698