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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorklet.h

Issue 1818223002: Introduce PaintWorkletGlobalScope, rename renderWorklet attribute to paintWorklet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix thing. Created 4 years, 9 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/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

Powered by Google App Engine
This is Rietveld 408576698