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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: Remove unnecessary PLATFORM_EXPORT Created 3 years, 10 months 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
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 "modules/compositorworker/AnimationWorkletThread.h" 5 #include "modules/compositorworker/AnimationWorkletThread.h"
6 6
7 #include "core/workers/WorkerThreadStartupData.h" 7 #include "core/workers/WorkerThreadStartupData.h"
8 #include "modules/compositorworker/AnimationWorkletGlobalScope.h" 8 #include "modules/compositorworker/AnimationWorkletGlobalScope.h"
9 #include "platform/instrumentation/tracing/TraceEvent.h" 9 #include "platform/instrumentation/tracing/TraceEvent.h"
10 #include "platform/weborigin/SecurityOrigin.h" 10 #include "platform/weborigin/SecurityOrigin.h"
(...skipping 28 matching lines...) Expand all
39 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("animation-worklet"), 39 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("animation-worklet"),
40 "AnimationWorkletThread::createWorkerGlobalScope"); 40 "AnimationWorkletThread::createWorkerGlobalScope");
41 41
42 RefPtr<SecurityOrigin> securityOrigin = 42 RefPtr<SecurityOrigin> securityOrigin =
43 SecurityOrigin::create(startupData->m_scriptURL); 43 SecurityOrigin::create(startupData->m_scriptURL);
44 if (startupData->m_starterOriginPrivilegeData) 44 if (startupData->m_starterOriginPrivilegeData)
45 securityOrigin->transferPrivilegesFrom( 45 securityOrigin->transferPrivilegesFrom(
46 std::move(startupData->m_starterOriginPrivilegeData)); 46 std::move(startupData->m_starterOriginPrivilegeData));
47 47
48 // TODO(ikilpatrick): The AnimationWorkletGlobalScope will need to store a 48 // TODO(ikilpatrick): The AnimationWorkletGlobalScope will need to store a
49 // WorkerClients object for using a CompositorProxyClient object. 49 // WorkerClients object for using a CompositorWorkerProxyClient object.
50 return AnimationWorkletGlobalScope::create( 50 return AnimationWorkletGlobalScope::create(
51 startupData->m_scriptURL, startupData->m_userAgent, 51 startupData->m_scriptURL, startupData->m_userAgent,
52 securityOrigin.release(), this->isolate(), this); 52 securityOrigin.release(), this->isolate(), this);
53 } 53 }
54 54
55 } // namespace blink 55 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698