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

Unified Diff: content/browser/webrtc/webrtc_capture_from_element_browsertest.cc

Issue 2797543002: Fix unreliable MediaStream capture from WebGL canvases (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | content/test/data/media/canvas_capture_color.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
diff --git a/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc b/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
index 7e213f01be32b0e21e8e184d43bf74aa9db00ea0..8eb34aa3b0318ebcbbbb3b41b5bd54918b46a062 100644
--- a/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
+++ b/content/browser/webrtc/webrtc_capture_from_element_browsertest.cc
@@ -73,12 +73,23 @@ class WebRtcCaptureFromElementBrowserTest
};
IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
- VerifyCanvasCaptureColor) {
- MakeTypicalCall("testCanvasCaptureColors();",
+ VerifyCanvas2DCaptureColor) {
+ MakeTypicalCall("testCanvas2DCaptureColors();",
kCanvasCaptureColorTestHtmlFile);
}
IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
+ VerifyCanvasWebGLCaptureColor) {
+#if !defined(OS_MACOSX)
+ // TODO(crbug.com/706009): Make this test pass on mac. Behavior is not buggy
+ // (verified manually) on mac, but for some reason this test fails on the mac
+ // bot.
+ MakeTypicalCall("testCanvasWebGLCaptureColors();",
+ kCanvasCaptureColorTestHtmlFile);
+#endif
+}
+
+IN_PROC_BROWSER_TEST_F(WebRtcCaptureFromElementBrowserTest,
VerifyCanvasCapture2DFrames) {
MakeTypicalCall("testCanvasCapture(draw2d);", kCanvasCaptureTestHtmlFile);
}
« no previous file with comments | « no previous file | content/test/data/media/canvas_capture_color.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698