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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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/compositorworker/AnimationWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
index ee63ca4b447b59f86e832e79e5db6a4aede1714c..89e497661409a817837a561c80fde17e6cb1e468 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
@@ -14,9 +14,7 @@ namespace blink {
// static
AnimationWorklet* AnimationWorklet::create(LocalFrame* frame) {
- AnimationWorklet* worklet = new AnimationWorklet(frame);
- worklet->suspendIfNeeded();
- return worklet;
+ return new AnimationWorklet(frame);
}
AnimationWorklet::AnimationWorklet(LocalFrame* frame)

Powered by Google App Engine
This is Rietveld 408576698