| 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/CompositorWorkerGlobalScope.h" | 5 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "bindings/core/v8/SerializedScriptValue.h" | 8 #include "bindings/core/v8/serialization/SerializedScriptValue.h" |
| 9 #include "core/dom/CompositorWorkerProxyClient.h" | 9 #include "core/dom/CompositorWorkerProxyClient.h" |
| 10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
| 11 #include "core/workers/InProcessWorkerObjectProxy.h" | 11 #include "core/workers/InProcessWorkerObjectProxy.h" |
| 12 #include "core/workers/WorkerThreadStartupData.h" | 12 #include "core/workers/WorkerThreadStartupData.h" |
| 13 #include "modules/EventTargetModules.h" | 13 #include "modules/EventTargetModules.h" |
| 14 #include "modules/compositorworker/CompositorWorkerThread.h" | 14 #include "modules/compositorworker/CompositorWorkerThread.h" |
| 15 #include "platform/bindings/ScriptState.h" | 15 #include "platform/bindings/ScriptState.h" |
| 16 #include "platform/wtf/AutoReset.h" | 16 #include "platform/wtf/AutoReset.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 callback_collection_.ExecuteCallbacks(high_res_time_ms, high_res_time_ms); | 103 callback_collection_.ExecuteCallbacks(high_res_time_ms, high_res_time_ms); |
| 104 return !callback_collection_.IsEmpty(); | 104 return !callback_collection_.IsEmpty(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 InProcessWorkerObjectProxy& CompositorWorkerGlobalScope::WorkerObjectProxy() | 107 InProcessWorkerObjectProxy& CompositorWorkerGlobalScope::WorkerObjectProxy() |
| 108 const { | 108 const { |
| 109 return static_cast<CompositorWorkerThread*>(GetThread())->WorkerObjectProxy(); | 109 return static_cast<CompositorWorkerThread*>(GetThread())->WorkerObjectProxy(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| OLD | NEW |