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

Side by Side 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 unified diff | Download patch
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 PaintSize_h 5 #ifndef AnimationWorkletGlobalScope_h
6 #define PaintSize_h 6 #define AnimationWorkletGlobalScope_h
7
8 #include "core/workers/ThreadedWorkletGlobalScope.h"
7 9
8 namespace blink { 10 namespace blink {
9 11
10 class PaintSize : public GarbageCollectedFinalized<PaintSize>, public ScriptWrap pable { 12 class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope {
11 WTF_MAKE_NONCOPYABLE(PaintSize);
12 DEFINE_WRAPPERTYPEINFO(); 13 DEFINE_WRAPPERTYPEINFO();
13 public: 14 public:
14 static PaintSize* create(IntSize size) 15 static AnimationWorkletGlobalScope* create(const KURL&, const String& userAg ent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*);
15 { 16 ~AnimationWorkletGlobalScope() override;
16 return new PaintSize(size);
17 }
18 virtual ~PaintSize() {}
19 17
20 int width() const { return m_size.width(); }
21 int height() const { return m_size.height(); }
22
23 DEFINE_INLINE_TRACE() { }
24 private: 18 private:
25 explicit PaintSize(IntSize size) : m_size(size) { } 19 AnimationWorkletGlobalScope(const KURL&, const String& userAgent, PassRefPtr <SecurityOrigin>, v8::Isolate*, WorkerThread*);
26
27 IntSize m_size;
28 }; 20 };
29 21
30 } // namespace blink 22 } // namespace blink
31 23
32 #endif // PaintSize_h 24 #endif // AnimationWorkletGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698