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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h

Issue 2214263007: [worklets] Split apart CompositorWorkerThread for sharing with AnimationWorkletThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments. Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h b/third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h
new file mode 100644
index 0000000000000000000000000000000000000000..df878c0a75a541f0945d5a1857791b920296881d
--- /dev/null
+++ b/third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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 AbstractCompositorWorkerThread_h
+#define AbstractCompositorWorkerThread_h
+
+#include "core/workers/WorkerLoaderProxy.h"
+#include "core/workers/WorkerThread.h"
+#include "modules/ModulesExport.h"
+#include <memory>
+
+namespace blink {
+
+class WorkerReportingProxy;
+
+// TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no
+// longer have CompositorWorker.
+class MODULES_EXPORT AbstractCompositorWorkerThread : public WorkerThread {
nhiroki 2016/08/09 00:54:11 AnimationWorklet is CompositorWorklet, right? If w
ikilpatrick 2016/08/10 13:51:18 Done.
+public:
+ ~AbstractCompositorWorkerThread() override;
+
+ WorkerBackingThread& workerBackingThread() override;
+ bool shouldAttachThreadDebugger() const override { return false; }
+
+ static void ensureSharedBackingThread();
+ static void createSharedBackingThreadForTest();
+
+ static void clearSharedBackingThread();
+
+protected:
+ AbstractCompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
+
+ bool isOwningBackingThread() const override { return false; }
+};
+
+} // namespace blink
+
+#endif // AbstractCompositorWorkerThread_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698