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

Side by Side Diff: third_party/WebKit/Source/web/CompositorMutatorImpl.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/CompositorMutatorImpl.h" 5 #include "web/CompositorMutatorImpl.h"
6 6
7 #include "core/animation/CustomCompositorAnimationManager.h" 7 #include "core/animation/CustomCompositorAnimationManager.h"
8 #include "core/dom/CompositorProxy.h" 8 #include "core/dom/CompositorProxy.h"
9 #include "platform/CrossThreadFunctional.h" 9 #include "platform/CrossThreadFunctional.h"
10 #include "platform/WaitableEvent.h" 10 #include "platform/WaitableEvent.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 TRACE_EVENT0("compositor-worker", 79 TRACE_EVENT0("compositor-worker",
80 "CompositorMutatorImpl::registerCompositorAnimator"); 80 "CompositorMutatorImpl::registerCompositorAnimator");
81 DCHECK(!m_animators.contains(animator)); 81 DCHECK(!m_animators.contains(animator));
82 m_animators.insert(animator); 82 m_animators.insert(animator);
83 setNeedsMutate(); 83 setNeedsMutate();
84 } 84 }
85 85
86 void CompositorMutatorImpl::unregisterCompositorAnimator( 86 void CompositorMutatorImpl::unregisterCompositorAnimator(
87 CompositorAnimator* animator) { 87 CompositorAnimator* animator) {
88 DCHECK(m_animators.contains(animator)); 88 DCHECK(m_animators.contains(animator));
89 m_animators.remove(animator); 89 m_animators.erase(animator);
90 } 90 }
91 91
92 void CompositorMutatorImpl::setNeedsMutate() { 92 void CompositorMutatorImpl::setNeedsMutate() {
93 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); 93 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate");
94 m_client->setNeedsMutate(); 94 m_client->setNeedsMutate();
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698