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

Unified Diff: third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js

Issue 2818563006: ShapeDetection: Holding all of mock service to prevent GC (Closed)
Patch Set: ShapeDetection: Make sure tests are running serially 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/LayoutTests/shapedetection/detection-HTMLCanvasElement.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js
diff --git a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js
index f7dd350e4147c0ab30d0e1a58caff7a6a8dc1e80..d117ee0e8299fd61e9a876a40c7c44a021013789 100644
--- a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js
+++ b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-facedetection.js
@@ -20,19 +20,19 @@ let mockFaceDetectionProviderReady = define(
}
createFaceDetection(request, options) {
- this.mock_service_ = new MockFaceDetection(request, options);
+ this.mockService_ = new MockFaceDetection(request, options);
}
getFrameData() {
- return this.mock_service_.buffer_data_;
+ return this.mockService_.bufferData_;
}
getMaxDetectedFaces() {
- return this.mock_service_.maxDetectedFaces_;
+ return this.mockService_.maxDetectedFaces_;
}
getFastMode () {
- return this.mock_service_.fastMode_;
+ return this.mockService_.fastMode_;
}
}
@@ -46,7 +46,7 @@ let mockFaceDetectionProviderReady = define(
detect(frame_data, width, height) {
let receivedStruct = mojo.mapBuffer(frame_data, 0, width*height*4, 0);
- this.buffer_data_ = new Uint32Array(receivedStruct.buffer);
+ this.bufferData_ = new Uint32Array(receivedStruct.buffer);
return Promise.resolve({
results: [
{
« no previous file with comments | « third_party/WebKit/LayoutTests/shapedetection/detection-HTMLCanvasElement.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698