OLD | NEW |
(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 "modules/compositorworker/CompositorWorklet.h" |
| 6 |
| 7 #include "modules/compositorworker/CompositorWorkletGlobalScopeProxy.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 CompositorWorklet* CompositorWorklet::create(LocalFrame* frame, ExecutionContext
* executionContext) |
| 12 { |
| 13 return new CompositorWorklet(frame, executionContext); |
| 14 } |
| 15 |
| 16 CompositorWorklet::CompositorWorklet(LocalFrame*, ExecutionContext* executionCon
text) |
| 17 : Worklet(executionContext) |
| 18 , m_workletGlobalScopeProxy(CompositorWorkletGlobalScopeProxy::create(execut
ionContext->url(), executionContext->userAgent(), executionContext->getSecurityO
rigin())) |
| 19 { |
| 20 } |
| 21 |
| 22 CompositorWorklet::~CompositorWorklet() |
| 23 { |
| 24 } |
| 25 |
| 26 WorkletGlobalScopeProxy* CompositorWorklet::workletGlobalScopeProxy() const |
| 27 { |
| 28 return m_workletGlobalScopeProxy; |
| 29 } |
| 30 |
| 31 DEFINE_TRACE(CompositorWorklet) |
| 32 { |
| 33 Worklet::trace(visitor); |
| 34 } |
| 35 |
| 36 } // namespace blink |
OLD | NEW |