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

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

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/AudioNodeInput.h » ('j') | 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) 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 23 matching lines...) Expand all
34 #include "modules/webaudio/AudioNodeInput.h" 34 #include "modules/webaudio/AudioNodeInput.h"
35 #include "modules/webaudio/AudioNodeOutput.h" 35 #include "modules/webaudio/AudioNodeOutput.h"
36 #include "modules/webaudio/AudioParam.h" 36 #include "modules/webaudio/AudioParam.h"
37 #include "wtf/Atomics.h" 37 #include "wtf/Atomics.h"
38 #include "wtf/MainThread.h" 38 #include "wtf/MainThread.h"
39 39
40 #if DEBUG_AUDIONODE_REFERENCES 40 #if DEBUG_AUDIONODE_REFERENCES
41 #include <stdio.h> 41 #include <stdio.h>
42 #endif 42 #endif
43 43
44 namespace WebCore { 44 namespace blink {
45 45
46 AudioNode::AudioNode(AudioContext* context, float sampleRate) 46 AudioNode::AudioNode(AudioContext* context, float sampleRate)
47 : m_isInitialized(false) 47 : m_isInitialized(false)
48 , m_nodeType(NodeTypeUnknown) 48 , m_nodeType(NodeTypeUnknown)
49 , m_context(context) 49 , m_context(context)
50 , m_sampleRate(sampleRate) 50 , m_sampleRate(sampleRate)
51 #if ENABLE(OILPAN) 51 #if ENABLE(OILPAN)
52 , m_keepAlive(adoptPtr(new Persistent<AudioNode>(this))) 52 , m_keepAlive(adoptPtr(new Persistent<AudioNode>(this)))
53 #endif 53 #endif
54 , m_lastProcessingTime(-1) 54 , m_lastProcessingTime(-1)
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 // It is safe to drop the self-persistent when the ref count 617 // It is safe to drop the self-persistent when the ref count
618 // of a AudioNode reaches zero. At that point, the 618 // of a AudioNode reaches zero. At that point, the
619 // AudioNode node is removed from the AudioContext and 619 // AudioNode node is removed from the AudioContext and
620 // it cannot be reattached. Therefore, the reference count 620 // it cannot be reattached. Therefore, the reference count
621 // will not go above zero again. 621 // will not go above zero again.
622 ASSERT(m_keepAlive); 622 ASSERT(m_keepAlive);
623 m_keepAlive = nullptr; 623 m_keepAlive = nullptr;
624 } 624 }
625 #endif 625 #endif
626 626
627 } // namespace WebCore 627 } // namespace blink
628 628
629 #endif // ENABLE(WEB_AUDIO) 629 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/AudioNodeInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698