Bug 1351263 - Label runnables in dom/media/Benchmark.cpp; r?jwwang draft
authorKaku Kuo <kaku@mozilla.com>
Tue, 28 Mar 2017 18:12:49 +0800
changeset 552791 af801abfc64288f7bddfcb3940673f3839abb909
parent 552146 5182b2c4b963ed87d038c7d9a4021463917076cd
child 552813 9d1b0765d730f6392c6364e8be80b5b67cd073ae
child 552909 c8a486dd01dcd36f40e52f3dbba77f32bb9d8492
push id51465
push userbmo:kaku@mozilla.com
push dateWed, 29 Mar 2017 01:55:25 +0000
reviewersjwwang
bugs1351263
milestone55.0a1
Bug 1351263 - Label runnables in dom/media/Benchmark.cpp; r?jwwang MozReview-Commit-ID: LZygjhx2A7i
dom/media/Benchmark.cpp
--- a/dom/media/Benchmark.cpp
+++ b/dom/media/Benchmark.cpp
@@ -55,18 +55,17 @@ VP9Benchmark::IsVP9DecodeFast()
                     {
                       Preferences::GetInt("media.benchmark.frames", 300), // frames to measure
                       1, // start benchmarking after decoding this frame.
                       8, // loop after decoding that many frames.
                       TimeDuration::FromMilliseconds(
                         Preferences::GetUint("media.benchmark.timeout", 1000))
                     });
     estimiser->Run()->Then(
-      // Non-DocGroup version of AbstractThread::MainThread for utility function.
-      AbstractThread::MainThread(), __func__,
+      SystemGroup::AbstractMainThreadFor(TaskCategory::Other), __func__,
       [](uint32_t aDecodeFps) {
         if (XRE_IsContentProcess()) {
           dom::ContentChild* contentChild = dom::ContentChild::GetSingleton();
           if (contentChild) {
             contentChild->SendNotifyBenchmarkResult(NS_LITERAL_STRING("VP9"),
                                                     aDecodeFps);
           }
         } else {