Bug 1634298 [wpt PR 23337] - [webrtc] remove unnecessary `ctx.getImageData()` call, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Wed, 13 May 2020 03:56:29 +0000
changeset 593691 2a86ee8bf5326c9f91eb725518270f418b89f3f9
parent 593690 87cf701578228b2f32a7cb3623054619adcb2f0d
child 593692 a8072af5720330edfa291d789ddb8aa823afb828
push id13186
push userffxbld-merge
push dateMon, 01 Jun 2020 09:52:46 +0000
treeherdermozilla-beta@3e7c70a1e4a1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1634298, 23337, 22779
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1634298 [wpt PR 23337] - [webrtc] remove unnecessary `ctx.getImageData()` call, a=testonly Automatic update from web-platform-tests [webrtc] remove unnecessary `ctx.getImageData()` call (#23337) See https://github.com/web-platform-tests/wpt/pull/22779#discussion_r407830942 -- wpt-commits: a9f1e8c01979f0415e4f18396fa7b46d257a675a wpt-pr: 23337
testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js
--- a/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js
+++ b/testing/web-platform/tests/webrtc/RTCPeerConnection-helper.js
@@ -454,17 +454,16 @@ const trackFactories = {
     setInterval(() => {
       ctx.fillStyle = `rgb(${count%255}, ${count*count%255}, ${count%255})`;
       count += 1;
       ctx.fillRect(0, 0, width, height);
       // If signal is set, add a constant-color box to the video frame.
       if (signal !== null) {
         ctx.fillStyle = `rgb(${signal}, ${signal}, ${signal})`;
         ctx.fillRect(10, 10, 20, 20);
-        let pixel = ctx.getImageData(15, 15, 1, 1);
       }
     }, 100);
 
     if (document.body) {
       document.body.appendChild(canvas);
     } else {
       document.addEventListener('DOMContentLoaded', () => {
         document.body.appendChild(canvas);