Closed
Bug 1377025
Opened 4 years ago
Closed 4 years ago
Remove the use of mMutex from VideoFrameContainer::InvalidateWithFlags()
Categories
(Core :: Audio/Video: Playback, enhancement, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(2 files)
See bug 1361622 comment 3. It is possible for SetCurrentFrames() to hold the lock for more than 1 sec. In order to prevent the main thread from being blocked by another thread in acquiring the lock, I will remove the use of mMutex from InvalidateWithFlags(). There are 3 members which will be accessed by multiple threads: 1. mImageSizeChanged 2. mIntrinsicSizeChanged 3. mIntrinsicSize We need a way to synchronize the access without using mMutex.
| Assignee | ||
Updated•4 years ago
|
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•4 years ago
|
Attachment #8882118 -
Flags: review?(cpearce)
Attachment #8882119 -
Flags: review?(cpearce)
Comment 3•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8882118 [details] Bug 1377025. P1 - dispatch image size changes to the main thread so mImageSizeChanged is for main thread only. https://reviewboard.mozilla.org/r/153232/#review158494
Attachment #8882118 -
Flags: review?(cpearce) → review+
Comment 4•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8882119 [details] Bug 1377025. P2 - dispatch intrinsic size changes to the main thread. https://reviewboard.mozilla.org/r/153234/#review158496
Attachment #8882119 -
Flags: review?(cpearce) → review+
| Assignee | ||
Comment 5•4 years ago
|
||
Thanks!
Pushed by jwwang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c1b4b68e161a P1 - dispatch image size changes to the main thread so mImageSizeChanged is for main thread only. r=cpearce https://hg.mozilla.org/integration/autoland/rev/1d14a426b9af P2 - dispatch intrinsic size changes to the main thread. r=cpearce
Comment 7•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c1b4b68e161a https://hg.mozilla.org/mozilla-central/rev/1d14a426b9af
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•