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

Unified Diff: content/test/data/media/getusermedia.html

Issue 1358883003: Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@send-gmbs
Patch Set: Test issues. Created 5 years, 2 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
Index: content/test/data/media/getusermedia.html
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html
index e4723636005fadec7b4e39b0989a7c86778324b1..7a7868db0e33fa8b9dd786c16e6086e8e6422234 100644
--- a/content/test/data/media/getusermedia.html
+++ b/content/test/data/media/getusermedia.html
@@ -483,12 +483,14 @@
// Walk horizontally counting light green pixels.
for (var x = 0; x < aperture; ++x) {
- if (pixels.data[4 * x + 1] != COLOR_BACKGROUND_GREEN)
+ if (Math.abs(pixels.data[4 * x + 1] - COLOR_BACKGROUND_GREEN) >
+ COLOR_BACKGROUND_GREEN_THRESHOLD)
phoglund_chromium 2015/10/13 08:07:01 I think you might as well inline the threshold con
emircan 2015/10/13 18:12:27 Done.
lightGreenPixelsX++;
}
// Walk vertically counting light green pixels.
for (var y = 0; y < aperture; ++y) {
- if (pixels.data[4 * y * aperture + 1] != COLOR_BACKGROUND_GREEN)
+ if (Math.abs(pixels.data[4 * y * aperture + 1] -
+ COLOR_BACKGROUND_GREEN) > COLOR_BACKGROUND_GREEN_THRESHOLD)
lightGreenPixelsY++;
}
if (lightGreenPixelsX > maxLightGreenPixelsX)

Powered by Google App Engine
This is Rietveld 408576698