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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.h

Issue 2485633004: Revert of DevTools: Make WorkerThreadDebugger available for Worklets (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AbstractAnimationWorkletThread_h 5 #ifndef AbstractAnimationWorkletThread_h
6 #define AbstractAnimationWorkletThread_h 6 #define AbstractAnimationWorkletThread_h
7 7
8 #include "core/workers/WorkerLoaderProxy.h" 8 #include "core/workers/WorkerLoaderProxy.h"
9 #include "core/workers/WorkerThread.h" 9 #include "core/workers/WorkerThread.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include <memory> 11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class WorkerReportingProxy; 15 class WorkerReportingProxy;
16 16
17 // TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no 17 // TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no
18 // longer have CompositorWorker. 18 // longer have CompositorWorker.
19 class MODULES_EXPORT AbstractAnimationWorkletThread : public WorkerThread { 19 class MODULES_EXPORT AbstractAnimationWorkletThread : public WorkerThread {
20 public: 20 public:
21 ~AbstractAnimationWorkletThread() override; 21 ~AbstractAnimationWorkletThread() override;
22 22
23 WorkerBackingThread& workerBackingThread() override; 23 WorkerBackingThread& workerBackingThread() override;
24 24
25 // The backing thread is cleared by clearSharedBackingThread(). 25 // The backing thread is cleared by clearSharedBackingThread().
26 void clearWorkerBackingThread() override {} 26 void clearWorkerBackingThread() override {}
27 27
28 bool shouldAttachThreadDebugger() const override { return false; }
29
28 // This may block the main thread. 30 // This may block the main thread.
29 static void collectAllGarbage(); 31 static void collectAllGarbage();
30 32
31 static void ensureSharedBackingThread(); 33 static void ensureSharedBackingThread();
32 static void clearSharedBackingThread(); 34 static void clearSharedBackingThread();
33 35
34 static void createSharedBackingThreadForTest(); 36 static void createSharedBackingThreadForTest();
35 37
36 protected: 38 protected:
37 AbstractAnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, 39 AbstractAnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>,
38 WorkerReportingProxy&); 40 WorkerReportingProxy&);
39 41
40 bool isOwningBackingThread() const override { return false; } 42 bool isOwningBackingThread() const override { return false; }
41 }; 43 };
42 44
43 } // namespace blink 45 } // namespace blink
44 46
45 #endif // AbstractAnimationWorkletThread_h 47 #endif // AbstractAnimationWorkletThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698