Bug 1374596: P2. Fix Benchmark required headers. r?padenot draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 20 Jun 2017 17:28:34 +0200
changeset 598124 2a8dac296bb47e5b98461b039014bfc6e2568d87
parent 598123 290714d0b8c10463d0cac81b6a81ac424c3d6ad7
child 598125 eee5b6f5fb8af88ca370a0684285c041ae64ab53
push id65143
push userbmo:jyavenard@mozilla.com
push dateWed, 21 Jun 2017 12:29:21 +0000
reviewerspadenot
bugs1374596
milestone56.0a1
Bug 1374596: P2. Fix Benchmark required headers. r?padenot MozReview-Commit-ID: JMiYDkkkNQB
dom/media/Benchmark.cpp
dom/media/Benchmark.h
--- a/dom/media/Benchmark.cpp
+++ b/dom/media/Benchmark.cpp
@@ -4,28 +4,33 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "Benchmark.h"
 #include "BufferMediaResource.h"
 #include "MediaData.h"
 #include "MediaPrefs.h"
 #include "PDMFactory.h"
+#include "VideoUtils.h"
 #include "WebMDemuxer.h"
 #include "gfxPrefs.h"
 #include "mozilla/AbstractThread.h"
 #include "mozilla/Preferences.h"
+#include "mozilla/SharedThreadPool.h"
+#include "mozilla/TaskQueue.h"
 #include "mozilla/Telemetry.h"
 #include "mozilla/dom/ContentChild.h"
 #include "mozilla/gfx/gfxVars.h"
 
 #ifndef MOZ_WIDGET_ANDROID
 #include "WebMSample.h"
 #endif
 
+using namespace mozilla::gfx;
+
 namespace mozilla {
 
 // Update this version number to force re-running the benchmark. Such as when
 // an improvement to FFVP9 or LIBVPX is deemed worthwhile.
 const uint32_t VP9Benchmark::sBenchmarkVersionID = 2;
 
 const char* VP9Benchmark::sBenchmarkFpsPref = "media.benchmark.vp9.fps";
 const char* VP9Benchmark::sBenchmarkFpsVersionCheck = "media.benchmark.vp9.versioncheck";
--- a/dom/media/Benchmark.h
+++ b/dom/media/Benchmark.h
@@ -7,17 +7,16 @@
 #ifndef MOZILLA_BENCHMARK_H
 #define MOZILLA_BENCHMARK_H
 
 #include "MediaDataDemuxer.h"
 #include "QueueObject.h"
 #include "PlatformDecoderModule.h"
 #include "mozilla/Maybe.h"
 #include "mozilla/RefPtr.h"
-#include "mozilla/TaskQueue.h"
 #include "mozilla/TimeStamp.h"
 #include "nsCOMPtr.h"
 
 namespace mozilla {
 
 class TaskQueue;
 class Benchmark;