Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: third_party/WebKit/Source/modules/shapedetection/TextDetector.cpp

Issue 2875243002: RELAND: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: RELAND2: ShapeDetection: use mojom::Bitmap for mojo interface. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/shapedetection/TextDetector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))));
« no previous file with comments | « third_party/WebKit/Source/modules/shapedetection/TextDetector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698