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 |