Closed Bug 1365484 Opened 8 years ago Closed 8 years ago

Remove the call to AbstractThread::GetCurrent() in Benchmark.cpp

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

See bug 1365483 for the rationale.
Assignee: nobody → jwwang
Blocks: 1365483
Priority: -- → P3
Comment on attachment 8868398 [details] Bug 1365484 - Remove the call to AbstractThread::GetCurrent() in Benchmark.cpp. https://reviewboard.mozilla.org/r/139988/#review143334
Attachment #8868398 - Flags: review?(gsquelart) → review+
Thanks!
Pushed by jwwang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4887aee47d0a Remove the call to AbstractThread::GetCurrent() in Benchmark.cpp. r=gerald
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Oh. Dispatching on the main thread here wasn't a great idea I'm afraid. Though, I don't fully recall the details nor what the original thread was supposed to be. This is called to test if our machine is fast enough. It's done by decoding a VP9 video. It can be very taxing from a CPU perspective. Running this on the main thread could cause severe UI impact. .
Flags: needinfo?(jwwang)
http://searchfox.org/mozilla-central/rev/9a7fbdee1d54f99cd548af95b81231d80e5f9ad1/dom/media/Benchmark.cpp#54 It is called from VP9Benchmark::IsVP9DecodeFast() which happens on the main thread. So the patch doesn't really make a difference.
Flags: needinfo?(jwwang)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: