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

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

Issue 1407703003: Reland: Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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..da6b2cc5958912413db001f4ca43ebe612f173fa 100644
--- a/content/test/data/media/getusermedia.html
+++ b/content/test/data/media/getusermedia.html
@@ -483,12 +483,12 @@
// Walk horizontally counting light green pixels.
for (var x = 0; x < aperture; ++x) {
- if (pixels.data[4 * x + 1] != COLOR_BACKGROUND_GREEN)
+ if (!isAlmostBackgroundGreen(pixels.data[4 * x + 1]))
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 (!isAlmostBackgroundGreen(pixels.data[4 * y * aperture + 1]))
lightGreenPixelsY++;
}
if (lightGreenPixelsX > maxLightGreenPixelsX)

Powered by Google App Engine
This is Rietveld 408576698