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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkletThread.h

Issue 1992933002: Introduce WorkletGlobalScopeProxy interface. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkletThread.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkletThread.h b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkletThread.h
new file mode 100644
index 0000000000000000000000000000000000000000..55b2ef31761411da8c723d2762a3d8c26d613708
--- /dev/null
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkletThread.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CompositorWorkletThread_h
+#define CompositorWorkletThread_h
+
+#include "modules/worklet/WorkletThread.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace blink {
+
+class CompositorWorkletThread final : public WorkletThread {
+public:
+ static PassOwnPtr<CompositorWorkletThread> create(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>);
+ ~CompositorWorkletThread() override;
+
+ WorkerBackingThread& workerBackingThread() final;
+
+protected:
+ WorkletGlobalScope* createWorkletGlobalScope(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>) final;
+
+private:
+ CompositorWorkletThread();
+};
+
+} // namespace blink
+
+#endif // CompositorWorkletThread_h

Powered by Google App Engine
This is Rietveld 408576698