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

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

Issue 2755393002: Revert of RELAND: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: Created 3 years, 9 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 5b8455705ab34225af938413917465e07f0e9b99..1b365acb5211c0e22749de82f0ffd3c7c6251a1c 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))));
« 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