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

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

Issue 2420203002: Implement convertToBlob() in OffscreenCanvas (Closed)
Patch Set: webgl layout test 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 075df5f754dae124dc6a7bb2b6fc6dac393021cc..a87e3b4066b0efc8dae2576acb0fb7d37dae068c 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -745,10 +745,9 @@ void HTMLCanvasElement::toBlob(BlobCallback* callback,
CanvasAsyncBlobCreator* asyncCreator = CanvasAsyncBlobCreator::create(
imageData->data(), encodingMimeType, imageData->size(), callback,
- startTime, document());
+ startTime, &document(), nullptr);
- bool useIdlePeriodScheduling = (encodingMimeType != "image/webp");
- asyncCreator->scheduleAsyncBlobCreation(useIdlePeriodScheduling, quality);
+ asyncCreator->scheduleAsyncBlobCreation(quality);
}
void HTMLCanvasElement::addListener(CanvasDrawListener* listener) {

Powered by Google App Engine
This is Rietveld 408576698