| Index: third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js
|
| diff --git a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js
|
| index e77feec1bf19694137982b069b8f5baa6b89b31a..11405a44ee5631507fec8b871bc1e1772d51bf72 100644
|
| --- a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js
|
| +++ b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-shapedetection.js
|
| @@ -22,9 +22,11 @@ let mockShapeDetectionReady = define(
|
| bindings.StubBindings(this.stub_).delegate = this;
|
| }
|
|
|
| - detectFaces(frame_data, width, height) {
|
| + detectFaces(frame_data, width, height, options) {
|
| let receivedStruct = mojo.mapBuffer(frame_data, 0, width*height*4, 0);
|
| this.buffer_data_ = new Uint32Array(receivedStruct.buffer);
|
| + this.maxDetectedFaces_ = options.maxDetectedFaces;
|
| + this.fastMode_ = options.fastMode;
|
| return Promise.resolve({
|
| result: {
|
| boundingBoxes: [
|
| @@ -58,6 +60,14 @@ let mockShapeDetectionReady = define(
|
| getFrameData() {
|
| return this.buffer_data_;
|
| }
|
| +
|
| + getMaxDetectedFaces() {
|
| + return this.maxDetectedFaces_;
|
| + }
|
| +
|
| + getFastMode () {
|
| + return this.fastMode_;
|
| + }
|
| }
|
| return new MockShapeDetection();
|
| });
|
|
|