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

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

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: rebase and fix global-interface-listing-service-worker-expected.txt Created 4 years, 2 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/core/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index b21b193ab5a526f7d01f05cd5683f5c5e4b43484..ecbf73e6dad25923f24fd5237eed460da3d8495d 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -746,10 +746,9 @@ void HTMLCanvasElement::toBlob(BlobCallback* callback,
CanvasAsyncBlobCreator* asyncCreator = CanvasAsyncBlobCreator::create(
imageData->data(), encodingMimeType, imageData->size(), callback,
- startTime, document());
+ startTime, &document());
- bool useIdlePeriodScheduling = (encodingMimeType != "image/webp");
- asyncCreator->scheduleAsyncBlobCreation(useIdlePeriodScheduling, quality);
+ asyncCreator->scheduleAsyncBlobCreation(quality);
}
void HTMLCanvasElement::addListener(CanvasDrawListener* listener) {
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698