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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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/webmidi/MIDIAccess.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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); 585 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]);
586 586
587 fprintf(stderr, "===========================\n\n\n"); 587 fprintf(stderr, "===========================\n\n\n");
588 } 588 }
589 589
590 #endif // DEBUG_AUDIONODE_REFERENCES 590 #endif // DEBUG_AUDIONODE_REFERENCES
591 591
592 void AudioNode::trace(Visitor* visitor) 592 void AudioNode::trace(Visitor* visitor)
593 { 593 {
594 visitor->trace(m_context); 594 visitor->trace(m_context);
595 EventTargetWithInlineData::trace(visitor);
595 } 596 }
596 597
597 #if ENABLE(OILPAN) 598 #if ENABLE(OILPAN)
598 void AudioNode::clearKeepAlive() 599 void AudioNode::clearKeepAlive()
599 { 600 {
600 // It is safe to drop the self-persistent when the ref count 601 // It is safe to drop the self-persistent when the ref count
601 // of a AudioNode reaches zero. At that point, the 602 // of a AudioNode reaches zero. At that point, the
602 // AudioNode node is removed from the AudioContext and 603 // AudioNode node is removed from the AudioContext and
603 // it cannot be reattached. Therefore, the reference count 604 // it cannot be reattached. Therefore, the reference count
604 // will not go above zero again. 605 // will not go above zero again.
605 ASSERT(m_keepAlive); 606 ASSERT(m_keepAlive);
606 m_keepAlive = nullptr; 607 m_keepAlive = nullptr;
607 } 608 }
608 #endif 609 #endif
609 610
610 } // namespace WebCore 611 } // namespace WebCore
611 612
612 #endif // ENABLE(WEB_AUDIO) 613 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webmidi/MIDIAccess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698