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

Unified Diff: Source/modules/webaudio/AbstractAudioContext.cpp

Issue 1180613007: Allow larger arrays up to size 8192 for PeriodicWave (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and use Audit.runTasks() Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/webaudio/resources/audio-testing.js ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AbstractAudioContext.cpp
diff --git a/Source/modules/webaudio/AbstractAudioContext.cpp b/Source/modules/webaudio/AbstractAudioContext.cpp
index 02c46d9010798b899d662f57418bb3ec9cb0a078..16484cab1bbdcd0bd9cf3bbb75a5a323e88afecc 100644
--- a/Source/modules/webaudio/AbstractAudioContext.cpp
+++ b/Source/modules/webaudio/AbstractAudioContext.cpp
@@ -577,32 +577,6 @@ PeriodicWave* AbstractAudioContext::createPeriodicWave(DOMFloat32Array* real, DO
return nullptr;
}
- if (real->length() > PeriodicWave::kMaxPeriodicWaveArraySize) {
- exceptionState.throwDOMException(
- IndexSizeError,
- ExceptionMessages::indexOutsideRange(
- "length of the real part array",
- real->length(),
- 1u,
- ExceptionMessages::InclusiveBound,
- PeriodicWave::kMaxPeriodicWaveArraySize,
- ExceptionMessages::InclusiveBound));
- return nullptr;
- }
-
- if (imag->length() > PeriodicWave::kMaxPeriodicWaveArraySize) {
- exceptionState.throwDOMException(
- IndexSizeError,
- ExceptionMessages::indexOutsideRange(
- "length of the imaginary part array",
- imag->length(),
- 1u,
- ExceptionMessages::InclusiveBound,
- PeriodicWave::kMaxPeriodicWaveArraySize,
- ExceptionMessages::InclusiveBound));
- return nullptr;
- }
-
if (real->length() != imag->length()) {
exceptionState.throwDOMException(
IndexSizeError,
« no previous file with comments | « LayoutTests/webaudio/resources/audio-testing.js ('k') | Source/modules/webaudio/PeriodicWave.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698