OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 AbstractCompositorWorkerThread_h | |
6 #define AbstractCompositorWorkerThread_h | |
7 | |
8 #include "core/workers/WorkerThread.h" | |
9 #include "modules/ModulesExport.h" | |
10 #include <memory> | |
11 | |
12 namespace blink { | |
13 | |
14 class WorkerReportingProxy; | |
15 | |
16 // TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no | |
17 // longer have CompositorWorker. | |
18 class MODULES_EXPORT AbstractCompositorWorkerThread : public WorkerThread { | |
19 public: | |
20 ~AbstractCompositorWorkerThread() override; | |
21 | |
22 WorkerBackingThread& workerBackingThread() override; | |
23 bool shouldAttachThreadDebugger() const override { return false; } | |
24 | |
25 static void ensureSharedBackingThread(); | |
26 static void createSharedBackingThreadForTest(); | |
27 | |
28 static void clearSharedBackingThread(); | |
29 | |
30 protected: | |
31 AbstractCompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportin gProxy&); | |
majidvp
2016/08/08 12:46:48
I believe you need to #include WorkerLoaderProxy.h
ikilpatrick
2016/08/08 13:54:58
Done.
| |
32 | |
33 bool isOwningBackingThread() const override { return false; } | |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // AbstractCompositorWorkerThread_h | |
OLD | NEW |