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

Unified Diff: content/test/data/media/depth_stream_test_utilities.js

Issue 2550193002: Fix: DepthCapture_depthStreamToRGBAFloatTexture flaky on MAC ATI Retina (Closed)
Patch Set: Fix: DepthCapture_depthStreamToRGBAFloatTexture flaky on MAC ATI Retina Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/depth_stream_test_utilities.js
diff --git a/content/test/data/media/depth_stream_test_utilities.js b/content/test/data/media/depth_stream_test_utilities.js
index c48df6d08f9e3144fa051e6e03d8e80be4ba7a75..44c51c72a64e3e5c3ab8206e7be826123631c589 100644
--- a/content/test/data/media/depth_stream_test_utilities.js
+++ b/content/test/data/media/depth_stream_test_utilities.js
@@ -61,7 +61,7 @@ function verifyPixels(
data[i + 1] + ", " + data[i + 2] +
" differ at index " + i);
}
- var calculated = (data[0] +
+ var calculated = (data[0] + wrap_around +
step * ((flip_y ? -row : row) + column)) % wrap_around;
if (Math.abs(calculated - data[i]) > tolerance) {
return Promise.reject(test_name + ": reference value " + data[i] +
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698