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

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

Issue 2304073002: LeakDetector should run a GC on the compositor thread (Closed)
Patch Set: fix Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 11 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698