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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.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
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Input(0).Pull(Output(0).Bus(), frames_to_process); 110 Input(0).Pull(Output(0).Bus(), frames_to_process);
111 } 111 }
112 112
113 // As soon as we know the channel count of our input, we can lazily initialize. 113 // As soon as we know the channel count of our input, we can lazily initialize.
114 // Sometimes this may be called more than once with different channel counts, in 114 // Sometimes this may be called more than once with different channel counts, in
115 // which case we must safely uninitialize and then re-initialize with the new 115 // which case we must safely uninitialize and then re-initialize with the new
116 // channel count. 116 // channel count.
117 void AudioBasicProcessorHandler::CheckNumberOfChannelsForInput( 117 void AudioBasicProcessorHandler::CheckNumberOfChannelsForInput(
118 AudioNodeInput* input) { 118 AudioNodeInput* input) {
119 DCHECK(Context()->IsAudioThread()); 119 DCHECK(Context()->IsAudioThread());
120 ASSERT(Context()->IsGraphOwner()); 120 DCHECK(Context()->IsGraphOwner());
121 121
122 DCHECK_EQ(input, &this->Input(0)); 122 DCHECK_EQ(input, &this->Input(0));
123 if (input != &this->Input(0)) 123 if (input != &this->Input(0))
124 return; 124 return;
125 125
126 DCHECK(Processor()); 126 DCHECK(Processor());
127 if (!Processor()) 127 if (!Processor())
128 return; 128 return;
129 129
130 unsigned number_of_channels = input->NumberOfChannels(); 130 unsigned number_of_channels = input->NumberOfChannels();
(...skipping 22 matching lines...) Expand all
153 153
154 double AudioBasicProcessorHandler::TailTime() const { 154 double AudioBasicProcessorHandler::TailTime() const {
155 return processor_->TailTime(); 155 return processor_->TailTime();
156 } 156 }
157 157
158 double AudioBasicProcessorHandler::LatencyTime() const { 158 double AudioBasicProcessorHandler::LatencyTime() const {
159 return processor_->LatencyTime(); 159 return processor_->LatencyTime();
160 } 160 }
161 161
162 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698