Index: services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java |
diff --git a/services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java b/services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java |
index 5a6f94e7b2e44127b05edb014abfcf0b4a4ea37d..4d9354b59caec3728dcfb0783fbe1d34dc369d7b 100644 |
--- a/services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java |
+++ b/services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java |
@@ -17,7 +17,6 @@ import org.chromium.base.ContextUtils; |
import org.chromium.base.Log; |
import org.chromium.gfx.mojom.RectF; |
import org.chromium.mojo.system.MojoException; |
-import org.chromium.mojo.system.SharedBufferHandle; |
import org.chromium.services.service_manager.InterfaceFactory; |
import org.chromium.shape_detection.mojom.TextDetection; |
import org.chromium.shape_detection.mojom.TextDetectionResult; |
@@ -36,8 +35,7 @@ public class TextDetectionImpl implements TextDetection { |
} |
@Override |
- public void detect( |
- SharedBufferHandle frameData, int width, int height, DetectResponse callback) { |
+ public void detect(org.chromium.skia.mojom.Bitmap bitmapData, DetectResponse callback) { |
if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable( |
ContextUtils.getApplicationContext()) |
!= ConnectionResult.SUCCESS) { |
@@ -55,7 +53,7 @@ public class TextDetectionImpl implements TextDetection { |
return; |
} |
- Frame frame = SharedBufferUtils.convertToFrame(frameData, width, height); |
+ Frame frame = BitmapUtils.convertToFrame(bitmapData); |
if (frame == null) { |
Log.e(TAG, "Error converting SharedMemory to Frame"); |
callback.call(new TextDetectionResult[0]); |