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

Side by Side Diff: third_party/WebKit/Source/web/CompositorProxyClientFactoryImpl.cpp

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: address feedback Created 4 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "web/CompositorProxyClientFactoryImpl.h"
6
7 #include "core/dom/CompositorProxyClient.h"
8 #include "web/AnimationWorkletProxyClientImpl.h"
9 #include "web/CompositorMutatorImpl.h"
10 #include "web/CompositorWorkerProxyClientImpl.h"
11
12 namespace blink {
13
14 CompositorProxyClientFactoryImpl::CompositorProxyClientFactoryImpl(
15 CompositorMutatorImpl* mutator)
16 : m_mutator(mutator) {}
17
18 CompositorProxyClient* CompositorProxyClientFactoryImpl::create(
19 CompositorProxyClient::Type type) {
20 switch (type) {
21 case CompositorProxyClient::kWorkerClient:
22 return new CompositorWorkerProxyClientImpl(m_mutator);
23 case CompositorProxyClient::kWorkletClient:
24 return new AnimationWorkletProxyClientImpl(m_mutator);
25 }
26
27 NOTREACHED() << "Unexpected CompositorProxyClient::Type: " << type;
28 return nullptr;
29 }
30
31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698