| 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/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/TraceEvent.h" | |
| 11 #include "platform/WaitableEvent.h" | 10 #include "platform/WaitableEvent.h" |
| 12 #include "platform/graphics/CompositorMutationsTarget.h" | 11 #include "platform/graphics/CompositorMutationsTarget.h" |
| 13 #include "platform/graphics/CompositorMutatorClient.h" | 12 #include "platform/graphics/CompositorMutatorClient.h" |
| 14 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "platform/tracing/TraceEvent.h" |
| 15 #include "public/platform/Platform.h" | 15 #include "public/platform/Platform.h" |
| 16 #include "web/CompositorProxyClientImpl.h" | 16 #include "web/CompositorProxyClientImpl.h" |
| 17 #include "wtf/PtrUtil.h" | 17 #include "wtf/PtrUtil.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 void createCompositorMutatorClient( | 23 void createCompositorMutatorClient( |
| 24 std::unique_ptr<CompositorMutatorClient>* ptr, | 24 std::unique_ptr<CompositorMutatorClient>* ptr, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 DCHECK(m_proxyClients.contains(client)); | 87 DCHECK(m_proxyClients.contains(client)); |
| 88 m_proxyClients.remove(client); | 88 m_proxyClients.remove(client); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void CompositorMutatorImpl::setNeedsMutate() { | 91 void CompositorMutatorImpl::setNeedsMutate() { |
| 92 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); | 92 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); |
| 93 m_client->setNeedsMutate(); | 93 m_client->setNeedsMutate(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| OLD | NEW |