| OLD | NEW |
| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 WorkerBackingThread& workerBackingThread() override; | 23 WorkerBackingThread& workerBackingThread() override; |
| 24 void clearWorkerBackingThread() override | 24 void clearWorkerBackingThread() override |
| 25 { | 25 { |
| 26 // Do nothing. | 26 // Do nothing. |
| 27 // The backing thread is cleared by clearSharedBackingThread(). | 27 // The backing thread is cleared by clearSharedBackingThread(). |
| 28 } | 28 } |
| 29 | 29 |
| 30 bool shouldAttachThreadDebugger() const override { return false; } | 30 bool shouldAttachThreadDebugger() const override { return false; } |
| 31 | 31 |
| 32 static void collectAllGarbage(); |
| 33 |
| 32 static void ensureSharedBackingThread(); | 34 static void ensureSharedBackingThread(); |
| 33 static void createSharedBackingThreadForTest(); | 35 static void createSharedBackingThreadForTest(); |
| 34 | 36 |
| 35 static void clearSharedBackingThread(); | 37 static void clearSharedBackingThread(); |
| 36 | 38 |
| 37 protected: | 39 protected: |
| 38 AbstractAnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportin
gProxy&); | 40 AbstractAnimationWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportin
gProxy&); |
| 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 |
| OLD | NEW |