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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO 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(DOMFloat32Array* array) { 268 void AnalyserNode::getFloatFrequencyData(NotShared<DOMFloat32Array> array) {
269 GetAnalyserHandler().GetFloatFrequencyData(array, context()->currentTime()); 269 GetAnalyserHandler().GetFloatFrequencyData(array.View(),
270 context()->currentTime());
270 } 271 }
271 272
272 void AnalyserNode::getByteFrequencyData(DOMUint8Array* array) { 273 void AnalyserNode::getByteFrequencyData(NotShared<DOMUint8Array> array) {
273 GetAnalyserHandler().GetByteFrequencyData(array, context()->currentTime()); 274 GetAnalyserHandler().GetByteFrequencyData(array.View(),
275 context()->currentTime());
274 } 276 }
275 277
276 void AnalyserNode::getFloatTimeDomainData(DOMFloat32Array* array) { 278 void AnalyserNode::getFloatTimeDomainData(NotShared<DOMFloat32Array> array) {
277 GetAnalyserHandler().GetFloatTimeDomainData(array); 279 GetAnalyserHandler().GetFloatTimeDomainData(array.View());
278 } 280 }
279 281
280 void AnalyserNode::getByteTimeDomainData(DOMUint8Array* array) { 282 void AnalyserNode::getByteTimeDomainData(NotShared<DOMUint8Array> array) {
281 GetAnalyserHandler().GetByteTimeDomainData(array); 283 GetAnalyserHandler().GetByteTimeDomainData(array.View());
282 } 284 }
283 285
284 } // namespace blink 286 } // 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