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

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

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
« no previous file with comments | « content/test/data/media/getusermedia.html ('k') | media/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/webrtc_test_utilities.js
diff --git a/content/test/data/media/webrtc_test_utilities.js b/content/test/data/media/webrtc_test_utilities.js
index f8b320966d91b92db5d33193af3c2cf2d76cea23..e47770b8481322e574ceea3233ed095df4c0f9c0 100644
--- a/content/test/data/media/webrtc_test_utilities.js
+++ b/content/test/data/media/webrtc_test_utilities.js
@@ -210,6 +210,13 @@ function isVideoBlack(pixels) {
return true;
}
+// Checks if the given color is within 1 value away from COLOR_BACKGROUND_GREEN.
+function isAlmostBackgroundGreen(color) {
+ if (Math.abs(color - COLOR_BACKGROUND_GREEN) > 1)
+ return false;
+ return true;
+}
+
// Use Luma as in Rec. 709: Y′709 = 0.2126R + 0.7152G + 0.0722B;
// See http://en.wikipedia.org/wiki/Rec._709.
function rec702Luma_(r, g, b) {
@@ -246,4 +253,4 @@ function hasVideoInputDeviceOnSystem() {
else
sendValueToTest('no-video-input-devices');
});
-}
+}
« no previous file with comments | « content/test/data/media/getusermedia.html ('k') | media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698