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

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

Issue 2809023002: Replace ASSERT/ASSERT_NOT_REACHED with DCHECK/NOTREACHED in modules/webaudio (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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp ('k') | no next file » | 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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 BaseAudioContext::AutoLocker context_locker(context()); 131 BaseAudioContext::AutoLocker context_locker(context());
132 132
133 if (type == "none") { 133 if (type == "none") {
134 GetWaveShaperProcessor()->SetOversample( 134 GetWaveShaperProcessor()->SetOversample(
135 WaveShaperProcessor::kOverSampleNone); 135 WaveShaperProcessor::kOverSampleNone);
136 } else if (type == "2x") { 136 } else if (type == "2x") {
137 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample2x); 137 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample2x);
138 } else if (type == "4x") { 138 } else if (type == "4x") {
139 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample4x); 139 GetWaveShaperProcessor()->SetOversample(WaveShaperProcessor::kOverSample4x);
140 } else { 140 } else {
141 ASSERT_NOT_REACHED(); 141 NOTREACHED();
142 } 142 }
143 } 143 }
144 144
145 String WaveShaperNode::oversample() const { 145 String WaveShaperNode::oversample() const {
146 switch (const_cast<WaveShaperNode*>(this) 146 switch (const_cast<WaveShaperNode*>(this)
147 ->GetWaveShaperProcessor() 147 ->GetWaveShaperProcessor()
148 ->Oversample()) { 148 ->Oversample()) {
149 case WaveShaperProcessor::kOverSampleNone: 149 case WaveShaperProcessor::kOverSampleNone:
150 return "none"; 150 return "none";
151 case WaveShaperProcessor::kOverSample2x: 151 case WaveShaperProcessor::kOverSample2x:
152 return "2x"; 152 return "2x";
153 case WaveShaperProcessor::kOverSample4x: 153 case WaveShaperProcessor::kOverSample4x:
154 return "4x"; 154 return "4x";
155 default: 155 default:
156 ASSERT_NOT_REACHED(); 156 NOTREACHED();
157 return "none"; 157 return "none";
158 } 158 }
159 } 159 }
160 160
161 } // namespace blink 161 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698