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" | |
10 #include "platform/TraceEvent.h" | 9 #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" |
15 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
16 #include "web/CompositorProxyClientImpl.h" | 15 #include "web/CompositorProxyClientImpl.h" |
| 16 #include "wtf/Functional.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 { |
25 CompositorMutatorImpl* mutator = CompositorMutatorImpl::create(); | 25 CompositorMutatorImpl* mutator = CompositorMutatorImpl::create(); |
26 ptr->reset(new CompositorMutatorClient(mutator, mutator->animationManager())
); | 26 ptr->reset(new CompositorMutatorClient(mutator, mutator->animationManager())
); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 setNeedsMutate(); | 79 setNeedsMutate(); |
80 } | 80 } |
81 | 81 |
82 void CompositorMutatorImpl::setNeedsMutate() | 82 void CompositorMutatorImpl::setNeedsMutate() |
83 { | 83 { |
84 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); | 84 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); |
85 m_client->setNeedsMutate(); | 85 m_client->setNeedsMutate(); |
86 } | 86 } |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
OLD | NEW |