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

Side by Side Diff: Source/modules/compositorworker/CompositorWorkerGlobalScope.h

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CompositorWorkerGlobalScope_h
6 #define CompositorWorkerGlobalScope_h
7
8 #include "core/dom/MessagePort.h"
9 #include "core/workers/WorkerGlobalScope.h"
10
11 namespace blink {
12
13 class CompositorWorkerThread;
14 class WorkerThreadStartupData;
15
16 class CompositorWorkerGlobalScope final : public WorkerGlobalScope {
17 DEFINE_WRAPPERTYPEINFO();
18 public:
19 static PassRefPtrWillBeRawPtr<CompositorWorkerGlobalScope> create(Compositor WorkerThread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>, double timeOrigi n);
20 virtual ~CompositorWorkerGlobalScope();
21
22 // EventTarget
23 const AtomicString& interfaceName() const override;
24
25 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const MessagePortArray*, ExceptionState&);
26 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
27
28 void executeCompositorFrameCallbacks(double monotonicTimeNow);
29
30 // ExecutionContext:
31 bool isCompositorWorkerGlobalScope() const override { return true; }
32
33 private:
34 CompositorWorkerGlobalScope(const KURL&, const String& userAgent, Compositor WorkerThread*, double timeOrigin, const SecurityOrigin*, PassOwnPtrWillBeRawPtr< WorkerClients>);
35 CompositorWorkerThread* thread() const;
36 };
37
38 } // namespace blink
39
40 #endif // CompositorWorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/modules/compositorworker/CompositorWorker.idl ('k') | Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698