| OLD | NEW |
| 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/AnimationWorkletProxyClientImpl.h" | 5 #include "web/AnimationWorkletProxyClientImpl.h" |
| 6 | 6 |
| 7 #include "core/dom/CompositorProxy.h" | 7 #include "core/dom/CompositorProxy.h" |
| 8 #include "platform/graphics/CompositorMutableStateProvider.h" | 8 #include "platform/graphics/CompositorMutableStateProvider.h" |
| 9 #include "web/CompositorMutatorImpl.h" | 9 #include "web/CompositorMutatorImpl.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 void AnimationWorkletProxyClientImpl::registerCompositorProxy( | 35 void AnimationWorkletProxyClientImpl::registerCompositorProxy( |
| 36 CompositorProxy* proxy) { | 36 CompositorProxy* proxy) { |
| 37 DCHECK(!isMainThread()); | 37 DCHECK(!isMainThread()); |
| 38 m_proxies.insert(proxy); | 38 m_proxies.insert(proxy); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void AnimationWorkletProxyClientImpl::unregisterCompositorProxy( | 41 void AnimationWorkletProxyClientImpl::unregisterCompositorProxy( |
| 42 CompositorProxy* proxy) { | 42 CompositorProxy* proxy) { |
| 43 DCHECK(!isMainThread()); | 43 DCHECK(!isMainThread()); |
| 44 m_proxies.remove(proxy); | 44 m_proxies.erase(proxy); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace blink | 47 } // namespace blink |
| OLD | NEW |