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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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 4522c2e667e6a79f0a98833161b12f169e23f4f8..f4ecbda42b69d3d8e6a2fb8136dfdb4df83b76f5 100644
--- a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp
@@ -88,7 +88,7 @@ void DeferredTaskHandler::breakConnections() {
void DeferredTaskHandler::markSummingJunctionDirty(
AudioSummingJunction* summingJunction) {
ASSERT(isGraphOwner());
- m_dirtySummingJunctions.add(summingJunction);
+ m_dirtySummingJunctions.insert(summingJunction);
}
void DeferredTaskHandler::removeMarkedSummingJunction(
@@ -101,7 +101,7 @@ void DeferredTaskHandler::removeMarkedSummingJunction(
void DeferredTaskHandler::markAudioNodeOutputDirty(AudioNodeOutput* output) {
ASSERT(isGraphOwner());
DCHECK(isMainThread());
- m_dirtyAudioNodeOutputs.add(output);
+ m_dirtyAudioNodeOutputs.insert(output);
}
void DeferredTaskHandler::removeMarkedAudioNodeOutput(AudioNodeOutput* output) {
@@ -135,7 +135,7 @@ void DeferredTaskHandler::addAutomaticPullNode(AudioHandler* node) {
ASSERT(isGraphOwner());
if (!m_automaticPullNodes.contains(node)) {
- m_automaticPullNodes.add(node);
+ m_automaticPullNodes.insert(node);
m_automaticPullNodesNeedUpdating = true;
}
}
@@ -168,7 +168,7 @@ void DeferredTaskHandler::processAutomaticPullNodes(size_t framesToProcess) {
void DeferredTaskHandler::addChangedChannelCountMode(AudioHandler* node) {
ASSERT(isGraphOwner());
DCHECK(isMainThread());
- m_deferredCountModeChange.add(node);
+ m_deferredCountModeChange.insert(node);
}
void DeferredTaskHandler::removeChangedChannelCountMode(AudioHandler* node) {
@@ -180,7 +180,7 @@ void DeferredTaskHandler::removeChangedChannelCountMode(AudioHandler* node) {
void DeferredTaskHandler::addChangedChannelInterpretation(AudioHandler* node) {
ASSERT(isGraphOwner());
DCHECK(isMainThread());
- m_deferredChannelInterpretationChange.add(node);
+ m_deferredChannelInterpretationChange.insert(node);
}
void DeferredTaskHandler::removeChangedChannelInterpretation(

Powered by Google App Engine
This is Rietveld 408576698