| 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(std::unique_ptr<CompositorMutatorClient>* ptr
, WaitableEvent* doneEvent) | 23 void createCompositorMutatorClient(std::unique_ptr<CompositorMutatorClient>* ptr
, WaitableEvent* doneEvent) |
| 24 { | 24 { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 m_proxyClients.remove(client); | 86 m_proxyClients.remove(client); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void CompositorMutatorImpl::setNeedsMutate() | 89 void CompositorMutatorImpl::setNeedsMutate() |
| 90 { | 90 { |
| 91 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); | 91 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); |
| 92 m_client->setNeedsMutate(); | 92 m_client->setNeedsMutate(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |