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

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

Issue 2214263007: [worklets] Split apart CompositorWorkerThread for sharing with AnimationWorkletThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments. Created 4 years, 4 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/AbstractCompositorWorkerThread.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/WorkerLoaderProxy.h"
9 #include "core/workers/WorkerThread.h"
10 #include "modules/ModulesExport.h"
11 #include <memory>
12
13 namespace blink {
14
15 class WorkerReportingProxy;
16
17 // TODO(ikilpatrick): Remove this class up to AnimationWorkletThread once we no
18 // longer have CompositorWorker.
19 class MODULES_EXPORT AbstractCompositorWorkerThread : public WorkerThread {
nhiroki 2016/08/09 00:54:11 AnimationWorklet is CompositorWorklet, right? If w
ikilpatrick 2016/08/10 13:51:18 Done.
20 public:
21 ~AbstractCompositorWorkerThread() override;
22
23 WorkerBackingThread& workerBackingThread() override;
24 bool shouldAttachThreadDebugger() const override { return false; }
25
26 static void ensureSharedBackingThread();
27 static void createSharedBackingThreadForTest();
28
29 static void clearSharedBackingThread();
30
31 protected:
32 AbstractCompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportin gProxy&);
33
34 bool isOwningBackingThread() const override { return false; }
35 };
36
37 } // namespace blink
38
39 #endif // AbstractCompositorWorkerThread_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AbstractCompositorWorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698