| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/CompositorWorkerThread.h" | 5 #include "modules/compositorworker/CompositorWorkerThread.h" | 
| 6 | 6 | 
|  | 7 #include <memory> | 
| 7 #include "core/workers/InProcessWorkerObjectProxy.h" | 8 #include "core/workers/InProcessWorkerObjectProxy.h" | 
| 8 #include "core/workers/WorkerThreadStartupData.h" | 9 #include "core/workers/WorkerThreadStartupData.h" | 
| 9 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | 10 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" | 
| 10 #include "platform/instrumentation/tracing/TraceEvent.h" | 11 #include "platform/instrumentation/tracing/TraceEvent.h" | 
| 11 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" | 
| 12 #include <memory> |  | 
| 13 | 13 | 
| 14 namespace blink { | 14 namespace blink { | 
| 15 | 15 | 
| 16 std::unique_ptr<CompositorWorkerThread> CompositorWorkerThread::create( | 16 std::unique_ptr<CompositorWorkerThread> CompositorWorkerThread::create( | 
| 17     PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, | 17     PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, | 
| 18     InProcessWorkerObjectProxy& workerObjectProxy, | 18     InProcessWorkerObjectProxy& workerObjectProxy, | 
| 19     ParentFrameTaskRunners* parentFrameTaskRunners, | 19     ParentFrameTaskRunners* parentFrameTaskRunners, | 
| 20     double timeOrigin) { | 20     double timeOrigin) { | 
| 21   TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), | 21   TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), | 
| 22                "CompositorWorkerThread::create"); | 22                "CompositorWorkerThread::create"); | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 41 | 41 | 
| 42 WorkerOrWorkletGlobalScope* CompositorWorkerThread::createWorkerGlobalScope( | 42 WorkerOrWorkletGlobalScope* CompositorWorkerThread::createWorkerGlobalScope( | 
| 43     std::unique_ptr<WorkerThreadStartupData> startupData) { | 43     std::unique_ptr<WorkerThreadStartupData> startupData) { | 
| 44   TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), | 44   TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"), | 
| 45                "CompositorWorkerThread::createWorkerGlobalScope"); | 45                "CompositorWorkerThread::createWorkerGlobalScope"); | 
| 46   return CompositorWorkerGlobalScope::create(this, std::move(startupData), | 46   return CompositorWorkerGlobalScope::create(this, std::move(startupData), | 
| 47                                              m_timeOrigin); | 47                                              m_timeOrigin); | 
| 48 } | 48 } | 
| 49 | 49 | 
| 50 }  // namespace blink | 50 }  // namespace blink | 
| OLD | NEW | 
|---|