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

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

Issue 2871503003: Worklet: Move common code from Worker/WorkletGlobalScope to WorkerOrWorkletGlobalScope (Closed)
Patch Set: fix rebase failure Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ExceptionState.h"
8 #include "bindings/core/v8/serialization/SerializedScriptValue.h" 9 #include "bindings/core/v8/serialization/SerializedScriptValue.h"
9 #include "core/dom/CompositorWorkerProxyClient.h" 10 #include "core/dom/CompositorWorkerProxyClient.h"
10 #include "core/dom/ExecutionContext.h" 11 #include "core/dom/ExecutionContext.h"
11 #include "core/workers/InProcessWorkerObjectProxy.h" 12 #include "core/workers/InProcessWorkerObjectProxy.h"
12 #include "core/workers/WorkerThreadStartupData.h" 13 #include "core/workers/WorkerThreadStartupData.h"
13 #include "modules/EventTargetModules.h" 14 #include "modules/EventTargetModules.h"
14 #include "modules/compositorworker/CompositorWorkerThread.h" 15 #include "modules/compositorworker/CompositorWorkerThread.h"
15 #include "platform/bindings/ScriptState.h" 16 #include "platform/bindings/ScriptState.h"
16 #include "platform/wtf/AutoReset.h" 17 #include "platform/wtf/AutoReset.h"
17 18
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 callback_collection_.ExecuteCallbacks(high_res_time_ms, high_res_time_ms); 104 callback_collection_.ExecuteCallbacks(high_res_time_ms, high_res_time_ms);
104 return !callback_collection_.IsEmpty(); 105 return !callback_collection_.IsEmpty();
105 } 106 }
106 107
107 InProcessWorkerObjectProxy& CompositorWorkerGlobalScope::WorkerObjectProxy() 108 InProcessWorkerObjectProxy& CompositorWorkerGlobalScope::WorkerObjectProxy()
108 const { 109 const {
109 return static_cast<CompositorWorkerThread*>(GetThread())->WorkerObjectProxy(); 110 return static_cast<CompositorWorkerThread*>(GetThread())->WorkerObjectProxy();
110 } 111 }
111 112
112 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698