| Index: third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| diff --git a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| index e53f3c53c994e0bb06bfee27ff4f7e0a822ccfa4..d887f9db3d5f8ef36cc7590c86847e4dc04d6fbb 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| @@ -24,8 +24,11 @@
|
| &TextDetector::onTextServiceConnectionError, wrapWeakPersistent(this))));
|
| }
|
|
|
| -ScriptPromise TextDetector::doDetect(ScriptPromiseResolver* resolver,
|
| - skia::mojom::blink::BitmapPtr bitmap) {
|
| +ScriptPromise TextDetector::doDetect(
|
| + ScriptPromiseResolver* resolver,
|
| + mojo::ScopedSharedBufferHandle sharedBufferHandle,
|
| + int imageWidth,
|
| + int imageHeight) {
|
| ScriptPromise promise = resolver->promise();
|
| if (!m_textService) {
|
| resolver->reject(DOMException::create(
|
| @@ -33,7 +36,7 @@
|
| return promise;
|
| }
|
| m_textServiceRequests.insert(resolver);
|
| - m_textService->Detect(std::move(bitmap),
|
| + m_textService->Detect(std::move(sharedBufferHandle), imageWidth, imageHeight,
|
| convertToBaseCallback(WTF::bind(
|
| &TextDetector::onDetectText, wrapPersistent(this),
|
| wrapPersistent(resolver))));
|
|
|