WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
173410
[GStreamer] fast/canvas/canvas-createPattern-video-loading.html is failing since
r218170
https://bugs.webkit.org/show_bug.cgi?id=173410
Summary
[GStreamer] fast/canvas/canvas-createPattern-video-loading.html is failing si...
Miguel Gomez
Reported
2017-06-15 04:56:58 PDT
fast/canvas/canvas-createPattern-video-loading.html [ Failure ]
Attachments
Patch
(4.95 KB, patch)
2021-04-03 10:16 PDT
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 1
2017-08-10 05:28:03 PDT
The test fails because drawImageToCanvasAndCheckPixels only find transparent black on the canvas when called from the "playing" callback. The issue is that MediaPlayerPrivateGStreamerBase::m_sample is set to nullptr in the newly added flushCurrentBuffer() method, called in response to a GST_EVENT_FLUSH_START event. The paint() method then returns early because GST_IS_SAMPLE(m_sample.get()) is false, and the CanvasPattern ends up transparent black.
Claudio Saavedra
Comment 2
2018-02-02 06:48:58 PST
This started failing recently in Wayland and WPE as well:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fcanvas%2Fcanvas-createPattern-video-modify.html
Claudio Saavedra
Comment 3
2018-02-02 06:49:29 PST
Ah, sorry. Different test. :/
Philippe Normand
Comment 4
2018-02-28 02:13:50 PST
(In reply to Ms2ger from
comment #1
)
> The test fails because drawImageToCanvasAndCheckPixels only find transparent > black on the canvas when called from the "playing" callback. > > The issue is that MediaPlayerPrivateGStreamerBase::m_sample is set to > nullptr in the newly added flushCurrentBuffer() method, called in response > to a GST_EVENT_FLUSH_START event. The paint() method then returns early > because GST_IS_SAMPLE(m_sample.get()) is false, and the CanvasPattern ends > up transparent black.
Yes and because no texture copy is done when flushing the sample. The m_platformLayerProxy->dropCurrentBufferWhilePreservingTexture() call has no effect, because it's done outside of the texturemapper code path.
Philippe Normand
Comment 5
2021-04-03 10:16:44 PDT
Created
attachment 425097
[details]
Patch
EWS
Comment 6
2021-04-09 02:29:58 PDT
Committed
r275755
(
236333@main
): <
https://commits.webkit.org/236333@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 425097
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug