Index: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp |
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp |
index e902056276136240d28a08c9c0b83693104ad210..7fd65d28ddd3b295f1a97bddba877486beea89a8 100644 |
--- a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp |
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp |
@@ -281,8 +281,9 @@ void CanvasAsyncBlobCreator::scheduleInitiateJpegEncoding( |
const double& quality) { |
m_scheduleInitiateStartTime = WTF::monotonicallyIncreasingTime(); |
Platform::current()->currentThread()->scheduler()->postIdleTask( |
- BLINK_FROM_HERE, WTF::bind(&CanvasAsyncBlobCreator::initiateJpegEncoding, |
- wrapPersistent(this), quality)); |
+ BLINK_FROM_HERE, |
+ WTF::bind(&CanvasAsyncBlobCreator::initiateJpegEncoding, |
+ wrapPersistent(this), quality)); |
} |
void CanvasAsyncBlobCreator::initiateJpegEncoding(const double& quality, |
@@ -307,8 +308,9 @@ void CanvasAsyncBlobCreator::initiateJpegEncoding(const double& quality, |
void CanvasAsyncBlobCreator::scheduleInitiatePngEncoding() { |
m_scheduleInitiateStartTime = WTF::monotonicallyIncreasingTime(); |
Platform::current()->currentThread()->scheduler()->postIdleTask( |
- BLINK_FROM_HERE, WTF::bind(&CanvasAsyncBlobCreator::initiatePngEncoding, |
- wrapPersistent(this))); |
+ BLINK_FROM_HERE, |
+ WTF::bind(&CanvasAsyncBlobCreator::initiatePngEncoding, |
+ wrapPersistent(this))); |
} |
void CanvasAsyncBlobCreator::initiatePngEncoding(double deadlineSeconds) { |
@@ -342,8 +344,9 @@ void CanvasAsyncBlobCreator::idleEncodeRowsPng(double deadlineSeconds) { |
m_numRowsCompleted = y; |
m_elapsedTime += (WTF::monotonicallyIncreasingTime() - startTime); |
Platform::current()->currentThread()->scheduler()->postIdleTask( |
- BLINK_FROM_HERE, WTF::bind(&CanvasAsyncBlobCreator::idleEncodeRowsPng, |
- wrapPersistent(this))); |
+ BLINK_FROM_HERE, |
+ WTF::bind(&CanvasAsyncBlobCreator::idleEncodeRowsPng, |
+ wrapPersistent(this))); |
return; |
} |
PNGImageEncoder::writeOneRowToPng(inputPixels, m_pngEncoderState.get()); |
@@ -393,8 +396,9 @@ void CanvasAsyncBlobCreator::idleEncodeRowsJpeg(double deadlineSeconds) { |
this->createNullAndReturnResult(); |
} else { |
Platform::current()->currentThread()->scheduler()->postIdleTask( |
- BLINK_FROM_HERE, WTF::bind(&CanvasAsyncBlobCreator::idleEncodeRowsJpeg, |
- wrapPersistent(this))); |
+ BLINK_FROM_HERE, |
+ WTF::bind(&CanvasAsyncBlobCreator::idleEncodeRowsJpeg, |
+ wrapPersistent(this))); |
} |
} |
@@ -457,9 +461,10 @@ void CanvasAsyncBlobCreator::createBlobAndReturnResult() { |
convertMimeTypeEnumToString(m_mimeType)); |
if (m_functionType == HTMLCanvasToBlobCallback) { |
TaskRunnerHelper::get(TaskType::CanvasBlobSerialization, m_document) |
- ->postTask(BLINK_FROM_HERE, WTF::bind(&BlobCallback::handleEvent, |
- wrapPersistent(m_callback.get()), |
- wrapPersistent(resultBlob))); |
+ ->postTask(BLINK_FROM_HERE, |
+ WTF::bind(&BlobCallback::handleEvent, |
+ wrapPersistent(m_callback.get()), |
+ wrapPersistent(resultBlob))); |
} else { |
m_scriptPromiseResolver->resolve(resultBlob); |
} |