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 5de42229e0783db28d6670894eb631651a86b68d..1d6ad2742d6e179c8750a2510500e0939bfe1f5e 100644 |
--- a/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp |
+++ b/third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp |
@@ -24,11 +24,8 @@ TextDetector::TextDetector() : ShapeDetector() { |
&TextDetector::OnTextServiceConnectionError, WrapWeakPersistent(this)))); |
} |
-ScriptPromise TextDetector::DoDetect( |
- ScriptPromiseResolver* resolver, |
- mojo::ScopedSharedBufferHandle shared_buffer_handle, |
- int image_width, |
- int image_height) { |
+ScriptPromise TextDetector::DoDetect(ScriptPromiseResolver* resolver, |
+ skia::mojom::blink::BitmapPtr bitmap) { |
ScriptPromise promise = resolver->Promise(); |
if (!text_service_) { |
resolver->Reject(DOMException::Create( |
@@ -36,8 +33,7 @@ ScriptPromise TextDetector::DoDetect( |
return promise; |
} |
text_service_requests_.insert(resolver); |
- text_service_->Detect(std::move(shared_buffer_handle), image_width, |
- image_height, |
+ text_service_->Detect(std::move(bitmap), |
ConvertToBaseCallback(WTF::Bind( |
&TextDetector::OnDetectText, WrapPersistent(this), |
WrapPersistent(resolver)))); |