mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:05:08 +00:00
LibWeb: Track decoded video frame positions along with the frame image
This will be needed by the layout node, which may change what is painted when the position of the frame image is not the same as the element's current time.
This commit is contained in:
parent
46c98dbf43
commit
dd188aafb9
4 changed files with 16 additions and 10 deletions
|
@ -83,9 +83,9 @@ void HTMLVideoElement::set_video_track(JS::GCPtr<HTML::VideoTrack> video_track)
|
|||
m_video_track = video_track;
|
||||
}
|
||||
|
||||
void HTMLVideoElement::set_current_frame(Badge<VideoTrack>, RefPtr<Gfx::Bitmap> frame)
|
||||
void HTMLVideoElement::set_current_frame(Badge<VideoTrack>, RefPtr<Gfx::Bitmap> frame, double position)
|
||||
{
|
||||
m_current_frame = move(frame);
|
||||
m_current_frame = { move(frame), position };
|
||||
layout_node()->set_needs_display();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue