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

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

Issue 2912743002: [WIP] Worklet: Merge MainThreadWorklet and ThreadedWorklet into Worklet
Patch Set: WIP Created 3 years, 7 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.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
index 063effb5dad35d3b578ef2883dd758ea695b522d..bef58fcd3961ed1343b2c1688bb99a3ec19f3298 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
@@ -17,7 +17,7 @@ PaintWorklet* PaintWorklet::Create(LocalFrame* frame) {
}
PaintWorklet::PaintWorklet(LocalFrame* frame)
- : MainThreadWorklet(frame),
+ : Worklet(frame),
pending_generator_registry_(new PaintWorkletPendingGeneratorRegistry) {}
PaintWorklet::~PaintWorklet() = default;
@@ -38,7 +38,7 @@ void PaintWorklet::AddPendingGenerator(const String& name,
DEFINE_TRACE(PaintWorklet) {
visitor->Trace(pending_generator_registry_);
- MainThreadWorklet::Trace(visitor);
+ Worklet::Trace(visitor);
}
bool PaintWorklet::NeedsToCreateGlobalScope() {
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/PaintWorklet.h ('k') | third_party/WebKit/Source/modules/webaudio/AudioWorklet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698