Chromium Code Reviews| 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..e7b2b21ea47e28ef5b65fb205bd2f8bdce097422 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.h |
| @@ -0,0 +1,38 @@ |
| +// 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/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 { |
| +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&); |
|
majidvp
2016/08/08 12:46:48
I believe you need to #include WorkerLoaderProxy.h
ikilpatrick
2016/08/08 13:54:58
Done.
|
| + |
| + bool isOwningBackingThread() const override { return false; } |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // AbstractCompositorWorkerThread_h |