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

Unified Diff: Source/modules/compositorworker/CompositorWorkerThread.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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/compositorworker/CompositorWorkerThread.h
diff --git a/Source/modules/compositorworker/CompositorWorkerThread.h b/Source/modules/compositorworker/CompositorWorkerThread.h
new file mode 100644
index 0000000000000000000000000000000000000000..76a3f60db786b8ba350d34dea6456ff85f2e789a
--- /dev/null
+++ b/Source/modules/compositorworker/CompositorWorkerThread.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CompositorWorkerThread_h
+#define CompositorWorkerThread_h
+
+#include "core/workers/DedicatedWorkerThread.h"
+
+namespace blink {
+
+class CompositorWorkerThread final : public DedicatedWorkerThread {
kinuko 2015/03/25 05:48:45 If we're going to use the underlying thread differ
sadrul 2015/03/25 06:13:07 WorkerMessagingProxy::createWorkerThread() expects
tkent 2015/03/25 07:37:55 Probably we should introduce new WorkerThread clas
sadrul 2015/03/26 01:27:48 Turns out, we can just use 'WorkerThread' (instead
+public:
+ static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
+ virtual ~CompositorWorkerThread();
+
+private:
+ CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
+
+ v8::Isolate* initializeIsolate() override;
+ void willDestroyIsolate() override;
+ void destroyIsolate() override;
+ void terminateV8Execution() override;
+
+ PassOwnPtr<WebThreadSupportingGC> createWebThreadSupportingGC() override;
+ void didStartRunLoop() override;
+ void didStopRunLoop() override;
+};
+
+} // namespace blink
+
+#endif // CompositorWorkerThread_h

Powered by Google App Engine
This is Rietveld 408576698