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) { |