OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 "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"); |
| 14 return static_cast<CompositorProxyClient*>(WillBeHeapSupplement<WorkerClient
s>::from(clients, supplementName())); |
| 15 } |
| 16 |
| 17 const char* CompositorProxyClient::supplementName() |
| 18 { |
| 19 return "CompositorProxyClient"; |
| 20 } |
| 21 |
| 22 void provideCompositorProxyClientTo(WorkerClients* clients, PassOwnPtrWillBeRawP
tr<CompositorProxyClient> client) |
| 23 { |
| 24 TRACE_EVENT0("compositor-worker", "provideCompositorProxyClientTo"); |
| 25 clients->provideSupplement(CompositorProxyClient::supplementName(), client); |
| 26 } |
| 27 |
| 28 } // namespace blink |
OLD | NEW |