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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
index f4ecbda42b69d3d8e6a2fb8136dfdb4df83b76f5..f03fd8605b7ac20455be6adca4605713955ebb57 100644
--- a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
@@ -95,7 +95,7 @@ void DeferredTaskHandler::removeMarkedSummingJunction(
AudioSummingJunction* summingJunction) {
DCHECK(isMainThread());
AutoLocker locker(*this);
- m_dirtySummingJunctions.remove(summingJunction);
+ m_dirtySummingJunctions.erase(summingJunction);
}
void DeferredTaskHandler::markAudioNodeOutputDirty(AudioNodeOutput* output) {
@@ -107,7 +107,7 @@ void DeferredTaskHandler::markAudioNodeOutputDirty(AudioNodeOutput* output) {
void DeferredTaskHandler::removeMarkedAudioNodeOutput(AudioNodeOutput* output) {
ASSERT(isGraphOwner());
DCHECK(isMainThread());
- m_dirtyAudioNodeOutputs.remove(output);
+ m_dirtyAudioNodeOutputs.erase(output);
}
void DeferredTaskHandler::handleDirtyAudioSummingJunctions() {
@@ -144,7 +144,7 @@ void DeferredTaskHandler::removeAutomaticPullNode(AudioHandler* node) {
ASSERT(isGraphOwner());
if (m_automaticPullNodes.contains(node)) {
- m_automaticPullNodes.remove(node);
+ m_automaticPullNodes.erase(node);
m_automaticPullNodesNeedUpdating = true;
}
}
@@ -174,7 +174,7 @@ void DeferredTaskHandler::addChangedChannelCountMode(AudioHandler* node) {
void DeferredTaskHandler::removeChangedChannelCountMode(AudioHandler* node) {
ASSERT(isGraphOwner());
- m_deferredCountModeChange.remove(node);
+ m_deferredCountModeChange.erase(node);
}
void DeferredTaskHandler::addChangedChannelInterpretation(AudioHandler* node) {
@@ -187,7 +187,7 @@ void DeferredTaskHandler::removeChangedChannelInterpretation(
AudioHandler* node) {
ASSERT(isGraphOwner());
- m_deferredChannelInterpretationChange.remove(node);
+ m_deferredChannelInterpretationChange.erase(node);
}
void DeferredTaskHandler::updateChangedChannelCountMode() {

Powered by Google App Engine
This is Rietveld 408576698