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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/depth_stream_test_utilities.js ('k') | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/getusermedia.html
diff --git a/content/test/data/media/getusermedia.html b/content/test/data/media/getusermedia.html
index e8aac18fa23ff874324853323a95a16727146d84..a74a0e2e899f718cf9ac6fdae1515b049a483ae7 100644
--- a/content/test/data/media/getusermedia.html
+++ b/content/test/data/media/getusermedia.html
@@ -1,6 +1,7 @@
<html>
<head>
<script type="text/javascript" src="webrtc_test_utilities.js"></script>
+ <script type="text/javascript" src="depth_stream_test_utilities.js"></script>
<script type="text/javascript">
$ = function(id) {
return document.getElementById(id);
@@ -343,6 +344,21 @@
}
}
+ // testVideoToImageBitmap is a layout test that we run here because
+ // it requires --use-fake-device-for-media-capture.
+ function getDepthStreamAndCallCreateImageBitmap() {
+ console.log('Calling getDepthStreamAndCallCreateImageBitmap');
+ getFake16bitStream().then(function(stream) {
+ detectVideoInLocalView1(stream, function() {
+ testVideoToImageBitmap('local-view-1', function() {
+ stream.getVideoTracks()[0].stop();
+ waitForVideoToStop('local-view-1');
+ }, failedCallback);
+ });
+ },
+ failedCallback);
+ }
+
function failedCallback(error) {
failTest('GetUserMedia call failed with error name ' + error.name);
}
« no previous file with comments | « content/test/data/media/depth_stream_test_utilities.js ('k') | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698