OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
haraken
2016/05/06 02:45:50
2016
flackr
2016/05/06 18:15:07
Done.
| |
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 "core/dom/CompositorProxyClient.h" | |
6 | |
7 #include "platform/TraceEvent.h" | |
8 | |
9 namespace blink { | |
10 | |
11 CompositorProxyClient* CompositorProxyClient::from(WorkerClients* clients) | |
12 { | |
13 TRACE_EVENT0("compositor-worker", "CompositorProxyClient::from"); | |
haraken
2016/05/06 02:45:50
Does this performance really matter? Supplement::f
flackr
2016/05/06 18:15:07
Agreed, this should be fine. Removed.
| |
14 return static_cast<CompositorProxyClient*>(Supplement<WorkerClients>::from(c lients, supplementName())); | |
15 } | |
16 | |
17 const char* CompositorProxyClient::supplementName() | |
18 { | |
19 return "CompositorProxyClient"; | |
20 } | |
21 | |
22 void provideCompositorProxyClientTo(WorkerClients* clients, CompositorProxyClien t* client) | |
23 { | |
24 TRACE_EVENT0("compositor-worker", "provideCompositorProxyClientTo"); | |
haraken
2016/05/06 02:45:50
Ditto. This should happen only once, so it wouldn'
flackr
2016/05/06 18:15:07
Removed.
| |
25 clients->provideSupplement(CompositorProxyClient::supplementName(), client); | |
26 } | |
27 | |
28 } // namespace blink | |
OLD | NEW |