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

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

Issue 2254593002: [worklets] Introduce AnimationWorkletGlobalScope and ThreadedWorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove global listing as no console output. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintSize.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
similarity index 31%
copy from third_party/WebKit/Source/modules/csspaint/PaintSize.h
copy to third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
index c0880fad4f438d6d35a880fa167a0c60be7d80e0..9551b1e9fd6807aaf08a10a0e6fcf4cb184895fb 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintSize.h
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
@@ -2,31 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PaintSize_h
-#define PaintSize_h
+#ifndef AnimationWorkletGlobalScope_h
+#define AnimationWorkletGlobalScope_h
+
+#include "core/workers/ThreadedWorkletGlobalScope.h"
namespace blink {
-class PaintSize : public GarbageCollectedFinalized<PaintSize>, public ScriptWrappable {
- WTF_MAKE_NONCOPYABLE(PaintSize);
+class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope {
DEFINE_WRAPPERTYPEINFO();
public:
- static PaintSize* create(IntSize size)
- {
- return new PaintSize(size);
- }
- virtual ~PaintSize() {}
-
- int width() const { return m_size.width(); }
- int height() const { return m_size.height(); }
+ static AnimationWorkletGlobalScope* create(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*);
+ ~AnimationWorkletGlobalScope() override;
- DEFINE_INLINE_TRACE() { }
private:
- explicit PaintSize(IntSize size) : m_size(size) { }
-
- IntSize m_size;
+ AnimationWorkletGlobalScope(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*);
};
} // namespace blink
-#endif // PaintSize_h
+#endif // AnimationWorkletGlobalScope_h

Powered by Google App Engine
This is Rietveld 408576698