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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorklet.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/csspaint/PaintWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
index 397fbcba5497554c28741814b3f091f14438a83e..25d5f27992a6bba6fd2cbb0f23580dee5b3e3ba4 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp
@@ -13,9 +13,7 @@ namespace blink {
// static
PaintWorklet* PaintWorklet::create(LocalFrame* frame) {
- PaintWorklet* worklet = new PaintWorklet(frame);
- worklet->suspendIfNeeded();
- return worklet;
+ return new PaintWorklet(frame);
}
PaintWorklet::PaintWorklet(LocalFrame* frame)

Powered by Google App Engine
This is Rietveld 408576698