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

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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: Source/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 492c0912d8324e6ebe948f49ab2677f6f9dea79e..acf5a17571e3e5e63f187dad88795e313dcba9f4 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -574,7 +574,7 @@ void HTMLCanvasElement::toBlob(FileCallback* callback, const String& mimeType, c
ImageDataBuffer(imageData->size(), imageData->data()->data()).encodeImage(encodingMimeType, qualityPtr, &encodedImage);
resultBlob = File::create(encodedImage.data(), encodedImage.size(), encodingMimeType);
- Platform::current()->mainThread()->postTask(FROM_HERE, bind(&FileCallback::handleEvent, callback, resultBlob));
+ Platform::current()->mainThread()->defaultTaskRunner()->postTask(FROM_HERE, bind(&FileCallback::handleEvent, callback, resultBlob));
}
SecurityOrigin* HTMLCanvasElement::securityOrigin() const

Powered by Google App Engine
This is Rietveld 408576698