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

Side by Side Diff: Source/core/platform/audio/HRTFKernel.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/platform/audio/HRTFElevation.cpp ('k') | Source/core/platform/audio/HRTFKernel.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 size_t fftSize() const { return m_fftFrame->fftSize(); } 69 size_t fftSize() const { return m_fftFrame->fftSize(); }
70 float frameDelay() const { return m_frameDelay; } 70 float frameDelay() const { return m_frameDelay; }
71 71
72 float sampleRate() const { return m_sampleRate; } 72 float sampleRate() const { return m_sampleRate; }
73 double nyquist() const { return 0.5 * sampleRate(); } 73 double nyquist() const { return 0.5 * sampleRate(); }
74 74
75 // Converts back into impulse-response form. 75 // Converts back into impulse-response form.
76 PassOwnPtr<AudioChannel> createImpulseResponse(); 76 PassOwnPtr<AudioChannel> createImpulseResponse();
77 77
78 void reportMemoryUsage(MemoryObjectInfo*) const;
79
80 private: 78 private:
81 // Note: this is destructive on the passed in AudioChannel. 79 // Note: this is destructive on the passed in AudioChannel.
82 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate); 80 HRTFKernel(AudioChannel*, size_t fftSize, float sampleRate);
83 81
84 HRTFKernel(PassOwnPtr<FFTFrame> fftFrame, float frameDelay, float sampleRate ) 82 HRTFKernel(PassOwnPtr<FFTFrame> fftFrame, float frameDelay, float sampleRate )
85 : m_fftFrame(fftFrame) 83 : m_fftFrame(fftFrame)
86 , m_frameDelay(frameDelay) 84 , m_frameDelay(frameDelay)
87 , m_sampleRate(sampleRate) 85 , m_sampleRate(sampleRate)
88 { 86 {
89 } 87 }
90 88
91 OwnPtr<FFTFrame> m_fftFrame; 89 OwnPtr<FFTFrame> m_fftFrame;
92 float m_frameDelay; 90 float m_frameDelay;
93 float m_sampleRate; 91 float m_sampleRate;
94 }; 92 };
95 93
96 typedef Vector<RefPtr<HRTFKernel> > HRTFKernelList; 94 typedef Vector<RefPtr<HRTFKernel> > HRTFKernelList;
97 95
98 } // namespace WebCore 96 } // namespace WebCore
99 97
100 #endif // HRTFKernel_h 98 #endif // HRTFKernel_h
OLDNEW
« no previous file with comments | « Source/core/platform/audio/HRTFElevation.cpp ('k') | Source/core/platform/audio/HRTFKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698