| 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 3cab8b2010eadc44c810a56ba725c92bee35432f..734ae85600fe039ae85cce4e105eeab90e5d3394 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp
|
| @@ -24,8 +24,11 @@ TextDetector::TextDetector() : ShapeDetector() {
|
| &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 @@ ScriptPromise TextDetector::doDetect(ScriptPromiseResolver* resolver,
|
| 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))));
|
|
|