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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.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) 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Rendering is already started, which implicitly means we resume the 123 // Rendering is already started, which implicitly means we resume the
124 // rendering by calling |doOfflineRendering| on the render thread. 124 // rendering by calling |doOfflineRendering| on the render thread.
125 render_thread_->GetWebTaskRunner()->PostTask( 125 render_thread_->GetWebTaskRunner()->PostTask(
126 BLINK_FROM_HERE, 126 BLINK_FROM_HERE,
127 CrossThreadBind(&OfflineAudioDestinationHandler::DoOfflineRendering, 127 CrossThreadBind(&OfflineAudioDestinationHandler::DoOfflineRendering,
128 WrapPassRefPtr(this))); 128 WrapPassRefPtr(this)));
129 } 129 }
130 130
131 void OfflineAudioDestinationHandler::StopRendering() { 131 void OfflineAudioDestinationHandler::StopRendering() {
132 // offline audio rendering CANNOT BE stopped by JavaScript. 132 // offline audio rendering CANNOT BE stopped by JavaScript.
133 ASSERT_NOT_REACHED(); 133 NOTREACHED();
134 } 134 }
135 135
136 size_t OfflineAudioDestinationHandler::CallbackBufferSize() const { 136 size_t OfflineAudioDestinationHandler::CallbackBufferSize() const {
137 // The callback buffer size has no meaning for an offline context. 137 // The callback buffer size has no meaning for an offline context.
138 NOTREACHED(); 138 NOTREACHED();
139 return 0; 139 return 0;
140 } 140 }
141 WebThread* OfflineAudioDestinationHandler::OfflineRenderThread() { 141 WebThread* OfflineAudioDestinationHandler::OfflineRenderThread() {
142 DCHECK(render_thread_); 142 DCHECK(render_thread_);
143 143
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 SetHandler(OfflineAudioDestinationHandler::Create(*this, render_target)); 341 SetHandler(OfflineAudioDestinationHandler::Create(*this, render_target));
342 } 342 }
343 343
344 OfflineAudioDestinationNode* OfflineAudioDestinationNode::Create( 344 OfflineAudioDestinationNode* OfflineAudioDestinationNode::Create(
345 BaseAudioContext* context, 345 BaseAudioContext* context,
346 AudioBuffer* render_target) { 346 AudioBuffer* render_target) {
347 return new OfflineAudioDestinationNode(*context, render_target); 347 return new OfflineAudioDestinationNode(*context, render_target);
348 } 348 }
349 349
350 } // namespace blink 350 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/GainNode.cpp ('k') | third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698