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

Side by Side Diff: Source/modules/webaudio/AudioNode.cpp

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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 | Annotate | Revision Log
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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 338 }
339 339
340 void AudioNode::updateChannelsForInputs() 340 void AudioNode::updateChannelsForInputs()
341 { 341 {
342 for (unsigned i = 0; i < m_inputs.size(); ++i) 342 for (unsigned i = 0; i < m_inputs.size(); ++i)
343 input(i)->changedOutputs(); 343 input(i)->changedOutputs();
344 } 344 }
345 345
346 const AtomicString& AudioNode::interfaceName() const 346 const AtomicString& AudioNode::interfaceName() const
347 { 347 {
348 return eventNames().interfaceForAudioNode; 348 return EventTargetNames::AudioNode;
349 } 349 }
350 350
351 ExecutionContext* AudioNode::executionContext() const 351 ExecutionContext* AudioNode::executionContext() const
352 { 352 {
353 return const_cast<AudioNode*>(this)->context()->executionContext(); 353 return const_cast<AudioNode*>(this)->context()->executionContext();
354 } 354 }
355 355
356 void AudioNode::processIfNecessary(size_t framesToProcess) 356 void AudioNode::processIfNecessary(size_t framesToProcess)
357 { 357 {
358 ASSERT(context()->isAudioThread()); 358 ASSERT(context()->isAudioThread());
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); 579 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]);
580 580
581 fprintf(stderr, "===========================\n\n\n"); 581 fprintf(stderr, "===========================\n\n\n");
582 } 582 }
583 583
584 #endif // DEBUG_AUDIONODE_REFERENCES 584 #endif // DEBUG_AUDIONODE_REFERENCES
585 585
586 } // namespace WebCore 586 } // namespace WebCore
587 587
588 #endif // ENABLE(WEB_AUDIO) 588 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webaudio/AudioProcessingEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698