Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson 6d2721e35a Bug 1423241 - Remove drawImage exception handling from captureStream_common.js. r=jib
This can conceal real bugs. Tests should be fixed so they don't risk calling
getPixel in invalid states instead.

Differential Revision: https://phabricator.services.mozilla.com/D9100

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:07 +00:00
Andreas Pehrson f421080879 Bug 1380346 - Let CaptureStreamTestHelper2D.drawColor draw squares wherever you want. r=jib
It was supporting a simpler case of only drawing in the upper left corner of
the input canvas. This supports that by default still, but also allows the
caller to exactly specify coordinates and size of the rectangle to draw.

MozReview-Commit-ID: GVQh0HqejqU

--HG--
extra : rebase_source : fb48fd1681f0545c53b5cb49b2791f42270ca83c
2017-09-14 19:00:20 +02:00
Andreas Pehrson f9cccebd1e Bug 1380346 - CaptureStreamTestHelper shouldn't need a full-size canvas to extract a pixel. r=jib
Our previous strategy was to draw the *entire* video we wanted a pixel from to
a canvas, then extract the pixel we wanted from that. This was all right for
most of our cases where the video was sufficiently small.

However, drawImage is more powerful than that -- we really just need a 1x1
canvas and draw the pixel we want to look at straight in.

MozReview-Commit-ID: ATdFVY3YBUv

--HG--
extra : rebase_source : 47ce69d7d9fd6505d2991895d4484fcc1f746543
2017-09-14 18:57:12 +02:00
Andreas Pehrson 78a302848f Bug 1296531 - Let waitForPixel and friends take a cancelPromise. r=jib
MozReview-Commit-ID: 42hT181wkvq

--HG--
extra : rebase_source : 430d7ea6156bddf98893c4b8b3d0db70c3c54831
2017-05-29 16:27:45 +02:00
Kartikaya Gupta 66730bcc5b Bug 1376449 - Robustify startDrawing to prevent calling callback function after stop() has been called. r=pehrsons
MozReview-Commit-ID: 5vPtTHBGJhN

--HG--
extra : rebase_source : fc5ac99c261120c10d43616650c94bdbf63d3bbc
2017-06-27 13:55:45 -04:00
Andreas Pehrson c41610f6b8 Bug 1093835 - Commoditize checkVideoPlaying/checkVideoPaused. r=jib
This moves those two functions from a single test to a VideoStreamHelper in a
common file, so they can be used when checking video flow in multiple tests.

It also implements a VideoFrameEmitter that provides tests with an easy to
access video source where VideoStreamHelper can verify flow on the sink.

MozReview-Commit-ID: Fin9eiVmBe

--HG--
extra : rebase_source : 8b62124b0182d7e7bd78788e031b2d2259db9e57
2017-05-04 15:23:36 +02:00
Randell Jesup ac570b16c4 Bug 1250356: rollup of changes for webrtc after applying webrtc.org v49 update r=pkerr,ng,pehrsons,etc
See ssh://hg.mozilla.org/users/paulrkerr_gmail.com/webrtc49_merge/ for the
patch development history.
2016-12-27 19:41:02 -05:00
Andreas Pehrson 9e974f707b Bug 1273314 - Log the caught error properly in CaptureStreamHelper. r=jib
MozReview-Commit-ID: 9T8G4Xyw69t

--HG--
extra : rebase_source : 9592e1e95454ff0ab48107b95d2c7304417479db
2016-09-30 17:24:43 +02:00
Andreas Pehrson dba71afe5e Bug 1259788 - Add video content test for captureStream of MediaElement playing a MediaStream. r=jib
MozReview-Commit-ID: F6X0E0VeqP9

--HG--
extra : rebase_source : d15ab649de706aa374112d8d7a99cb276de8343c
2016-08-18 17:37:19 +02:00
Andreas Pehrson 1157ca945a Bug 1208371 - Clear output canvas on each drawImage(). r=jib
Otherwise we'd risk reading old pixels in case we draw something
transparent.

MozReview-Commit-ID: LjNXE4Rmrmt

--HG--
extra : rebase_source : 229c883e362cc9e1d7b49479e46b01bbab329a46
2016-01-05 10:16:32 +08:00
Randell Jesup fc6187d378 Bug 1224029: ensure video elements that may be disabled (black) are scaled r=mattwoodrow
disabled video elements may be 1x1 black images

MozReview-Commit-ID: 6xTm8Eq1Tjs
2016-03-08 19:21:40 -05:00
Michael Froman 6abe3c833c Bug 1166832 - Add test for canvas capture on multiple streams. r=bwc
--HG--
extra : transplant_source : M%EF%1B%05%EC%E7%E7%D3%A0%3A%E3C4%17%C3%2B%8B%3D%2B%C3
extra : histedit_source : d018f58a2c171558932911bde42025b3184f5611
2016-01-14 10:56:17 -06:00
Robert O'Callahan 6f11ea45c0 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 9SdyuwXVlRD
extra : rebase_source : 7143bc6c346bf1c1259a83321d26a653adb70705
2015-11-17 16:34:28 +13:00
Andreas Pehrson efff11f482 Bug 1223696 - Make canvas captureStream helper resilient to exceptions when there's no video. r=roc
--HG--
extra : commitid : FAzUHddlKxp
extra : rebase_source : cdd127adc5352c464675635626274fc0d0da2c0e
2015-11-16 10:58:13 +08:00
Carsten "Tomcat" Book 694a81aba1 Backed out changeset 162ded2e49c8 (bug 1223696) for failing on own test on a CLOSED TREE 2015-11-23 09:48:56 +01:00
Robert O'Callahan f537754554 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 1b7GXS454NK
extra : rebase_source : cd2e35e1dc3be39945d00bfd2648f104258955c8
2015-11-17 16:34:28 +13:00
Andreas Pehrson 6b40da9ca1 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib
--HG--
extra : commitid : 1Lds1zOCtPn
extra : rebase_source : 391f0a9871e0f5c26d5480a10344e6a1c5fcb608
2015-11-09 23:17:41 +08:00
Wes Kocher 8c29b2aace Backed out 5 changesets (bug 1219711) for frequent android m(9) failures a=bustage
Backed out changeset 2d5f09d89424 (bug 1219711)
Backed out changeset cf14a6e5f340 (bug 1219711)
Backed out changeset 4eaa8cf9a752 (bug 1219711)
Backed out changeset 65abe62869df (bug 1219711)
Backed out changeset a21d79a94307 (bug 1219711)

--HG--
extra : commitid : 2uBL6k0T3uy
extra : source : aaee8ec22e5fd0650818aab7d85ff4b069681a35
2015-11-06 11:14:11 -08:00
Andreas Pehrson 839fb7b296 Bug 1219711 - Refactor captureStream_common.js to accept generic pixel testing method. r=jib
--HG--
extra : commitid : ACLnd4zWe6Y
extra : rebase_source : 298c721393c222ef55858438a14e8b6bcc1ce510
2015-11-05 17:15:50 +08:00
Andreas Pehrson 461b9f6576 Bug 1161913 - Part 3 - Relax requestFrame ordering guarantee in tests. r=mt
We used to fully guarantee the order of requestFrame() and draw calls.
For instance:
```
ctx.draw(red);
stream.requestFrame();
ctx.draw(green);
```
would guarantee that a red frame ended up in the stream, and not the
green unless another frame was requested.

Now with frames being requested and pushed out on next refresh, we can
only guarantee that everything up to the requestFrame() call is included
in the next frame. Everything after the requestFrame() and before the
next refresh (stable state in most cases) will now also be inevitably
included.

--HG--
extra : transplant_source : %DF%A1%9C%A8%2B%3AzTS%EA%CE%0A%023%E2%EBWC%FD%3C
2015-09-17 11:37:05 +08:00
Jan-Ivar Bruaroey 0ccb51ddc8 Bug 1175523 - Update most (but not all) tests to use elem.srcObject over .mozSrcObject. r=pehrsons
--HG--
extra : rebase_source : bac0027f4bf5d75b8730c44a10141c114002633b
2015-07-14 10:12:31 -04:00
Andreas Pehrson c1f6180c92 Bug 1032848 - Part 3: Add tests for HTMLCanvasElement::CaptureStream. r=mt, r=jgilbert, r=jesup
--HG--
extra : transplant_source : %10%FE%B2%29%FD%88%94%3Ax%11%F8%8D%A5%218e%F3%EA%E7%2B
2015-05-13 14:04:51 +08:00