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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 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
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 void AnalyserNode::setSmoothingTimeConstant(double smoothing_time, 258 void AnalyserNode::setSmoothingTimeConstant(double smoothing_time,
259 ExceptionState& exception_state) { 259 ExceptionState& exception_state) {
260 GetAnalyserHandler().SetSmoothingTimeConstant(smoothing_time, 260 GetAnalyserHandler().SetSmoothingTimeConstant(smoothing_time,
261 exception_state); 261 exception_state);
262 } 262 }
263 263
264 double AnalyserNode::smoothingTimeConstant() const { 264 double AnalyserNode::smoothingTimeConstant() const {
265 return GetAnalyserHandler().SmoothingTimeConstant(); 265 return GetAnalyserHandler().SmoothingTimeConstant();
266 } 266 }
267 267
268 void AnalyserNode::getFloatFrequencyData(NotShared<DOMFloat32Array> array) { 268 void AnalyserNode::getFloatFrequencyData(DOMFloat32Array* array) {
269 GetAnalyserHandler().GetFloatFrequencyData(array.View(), 269 GetAnalyserHandler().GetFloatFrequencyData(array, context()->currentTime());
270 context()->currentTime());
271 } 270 }
272 271
273 void AnalyserNode::getByteFrequencyData(NotShared<DOMUint8Array> array) { 272 void AnalyserNode::getByteFrequencyData(DOMUint8Array* array) {
274 GetAnalyserHandler().GetByteFrequencyData(array.View(), 273 GetAnalyserHandler().GetByteFrequencyData(array, context()->currentTime());
275 context()->currentTime());
276 } 274 }
277 275
278 void AnalyserNode::getFloatTimeDomainData(NotShared<DOMFloat32Array> array) { 276 void AnalyserNode::getFloatTimeDomainData(DOMFloat32Array* array) {
279 GetAnalyserHandler().GetFloatTimeDomainData(array.View()); 277 GetAnalyserHandler().GetFloatTimeDomainData(array);
280 } 278 }
281 279
282 void AnalyserNode::getByteTimeDomainData(NotShared<DOMUint8Array> array) { 280 void AnalyserNode::getByteTimeDomainData(DOMUint8Array* array) {
283 GetAnalyserHandler().GetByteTimeDomainData(array.View()); 281 GetAnalyserHandler().GetByteTimeDomainData(array);
284 } 282 }
285 283
286 } // namespace blink 284 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AnalyserNode.h ('k') | third_party/WebKit/Source/modules/webaudio/AudioBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698