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

Side by Side Diff: Source/modules/webaudio/BiquadProcessor.cpp

Issue 409303002: Oilpan: WebAudio: Prepare to move AudioProcessor hierarchy to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
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 * 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 if (autoInitialize) 53 if (autoInitialize)
54 initialize(); 54 initialize();
55 } 55 }
56 56
57 BiquadProcessor::~BiquadProcessor() 57 BiquadProcessor::~BiquadProcessor()
58 { 58 {
59 if (isInitialized()) 59 if (isInitialized())
60 uninitialize(); 60 uninitialize();
61 } 61 }
62 62
63 void BiquadProcessor::trace(Visitor* visitor)
64 {
65 visitor->trace(m_parameter1);
66 visitor->trace(m_parameter2);
67 visitor->trace(m_parameter3);
68 visitor->trace(m_parameter4);
69 AudioDSPKernelProcessor::trace(visitor);
70 }
71
63 PassOwnPtr<AudioDSPKernel> BiquadProcessor::createKernel() 72 PassOwnPtr<AudioDSPKernel> BiquadProcessor::createKernel()
64 { 73 {
65 return adoptPtr(new BiquadDSPKernel(this)); 74 return adoptPtr(new BiquadDSPKernel(this));
66 } 75 }
67 76
68 void BiquadProcessor::checkForDirtyCoefficients() 77 void BiquadProcessor::checkForDirtyCoefficients()
69 { 78 {
70 // Deal with smoothing / de-zippering. Start out assuming filter parameters are not changing. 79 // Deal with smoothing / de-zippering. Start out assuming filter parameters are not changing.
71 80
72 // The BiquadDSPKernel objects rely on this value to see if they need to re- compute their internal filter coefficients. 81 // The BiquadDSPKernel objects rely on this value to see if they need to re- compute their internal filter coefficients.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // thread on the main kernels. 138 // thread on the main kernels.
130 139
131 OwnPtr<BiquadDSPKernel> responseKernel = adoptPtr(new BiquadDSPKernel(this)) ; 140 OwnPtr<BiquadDSPKernel> responseKernel = adoptPtr(new BiquadDSPKernel(this)) ;
132 141
133 responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, phaseResponse); 142 responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, phaseResponse);
134 } 143 }
135 144
136 } // namespace blink 145 } // namespace blink
137 146
138 #endif // ENABLE(WEB_AUDIO) 147 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698