Index: third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..26134e357027322cbf507272114728024d55c5bc |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h |
@@ -0,0 +1,32 @@ |
+// 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 PaintWorklet_h |
+#define PaintWorklet_h |
+ |
+#include "modules/worklet/Worklet.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class PaintWorklet final : public Worklet { |
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintWorklet); |
haraken
2016/03/22 01:52:56
You can remove this since Worklet has WILL_BE_USIN
ikilpatrick
2016/03/22 20:31:51
Done.
|
+ WTF_MAKE_NONCOPYABLE(PaintWorklet); |
+public: |
+ static PaintWorklet* create(LocalFrame*, ExecutionContext*); |
+ ~PaintWorklet() override; |
+ |
+ WorkletGlobalScope* workletGlobalScope() const final { return m_paintWorkletGlobalScope.get(); } |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+private: |
+ PaintWorklet(LocalFrame*, ExecutionContext*); |
+ |
+ RefPtrWillBeMember<WorkletGlobalScope> m_paintWorkletGlobalScope; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaintWorklet_h |