Bug 1207245 - part 2 followup - add more mozilla/RefCounted.h includes where appropriate; r=me
authorNathan Froyd <froydnj@mozilla.com>
Mon, 12 Oct 2015 22:24:05 -0400
changeset 267379 0c0654ecff2a5b5a56a2346e8c65d4e8872a710e
parent 267378 464e82856a55ddd3d4f916b1a60487533300a4fc
child 267380 b083aebe31ff34ee73a6adc4fdb7997a04102b78
push id29517
push usercbook@mozilla.com
push dateTue, 13 Oct 2015 10:01:04 +0000
treeherdermozilla-central@607a236c2299 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1207245
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1207245 - part 2 followup - add more mozilla/RefCounted.h includes where appropriate; r=me
gfx/2d/DrawingJob.h
gfx/2d/JobScheduler.h
gfx/2d/JobScheduler_posix.h
gfx/2d/JobScheduler_win32.h
gfx/2d/MacIOSurface.h
mozglue/linker/ElfLoader.h
mozglue/linker/Zip.h
--- a/gfx/2d/DrawingJob.h
+++ b/gfx/2d/DrawingJob.h
@@ -8,16 +8,17 @@
 
 #include <stdint.h>
 
 #include "mozilla/RefPtr.h"
 #include "mozilla/Assertions.h"
 #include "mozilla/gfx/Matrix.h"
 #include "mozilla/gfx/JobScheduler.h"
 #include "mozilla/gfx/IterableArena.h"
+#include "mozilla/RefCounted.h"
 #include "DrawCommand.h"
 
 namespace mozilla {
 namespace gfx {
 
 class DrawingCommand;
 class PrintCommand;
 class SignalCommand;
--- a/gfx/2d/JobScheduler.h
+++ b/gfx/2d/JobScheduler.h
@@ -3,16 +3,17 @@
  * 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/. */
 
 #ifndef MOZILLA_GFX_TASKSCHEDULER_H_
 #define MOZILLA_GFX_TASKSCHEDULER_H_
 
 #include "mozilla/RefPtr.h"
 #include "mozilla/gfx/Types.h"
+#include "mozilla/RefCounted.h"
 
 #ifdef WIN32
 #include "mozilla/gfx/JobScheduler_win32.h"
 #else
 #include "mozilla/gfx/JobScheduler_posix.h"
 #endif
 
 #include <vector>
@@ -242,9 +243,9 @@ protected:
   virtual void SetName(const char* aName) {}
 
   MultiThreadedJobQueue* mQueue;
 };
 
 } // namespace
 } // namespace
 
-#endif
\ No newline at end of file
+#endif
--- a/gfx/2d/JobScheduler_posix.h
+++ b/gfx/2d/JobScheduler_posix.h
@@ -12,16 +12,17 @@
 #include <list>
 #include <pthread.h>
 #include <stdint.h>
 #include <stdio.h>
 
 #include "mozilla/RefPtr.h"
 #include "mozilla/DebugOnly.h"
 #include "mozilla/gfx/CriticalSection.h"
+#include "mozilla/RefCounted.h"
 
 namespace mozilla {
 namespace gfx {
 
 class Job;
 class PosixCondVar;
 class WorkerThread;
 
--- a/gfx/2d/JobScheduler_win32.h
+++ b/gfx/2d/JobScheduler_win32.h
@@ -7,16 +7,17 @@
 #ifndef MOZILLA_GFX_TASKSCHEDULER_WIN32_H_
 #define MOZILLA_GFX_TASKSCHEDULER_WIN32_H_
 
 #include <windows.h>
 #include <list>
 
 #include "mozilla/RefPtr.h"
 #include "mozilla/gfx/CriticalSection.h"
+#include "mozilla/RefCounted.h"
 
 namespace mozilla {
 namespace gfx {
 
 class WorkerThread;
 class Job;
 
 // The public interface of this class must remain identical to its equivalent
--- a/gfx/2d/MacIOSurface.h
+++ b/gfx/2d/MacIOSurface.h
@@ -40,16 +40,17 @@ typedef IOSurfacePtr (*IOSurfaceContextG
 typedef IOSurfacePtr (*CVPixelBufferGetIOSurfaceFunc)(
   CVPixelBufferRef pixelBuffer);
 
 typedef OSType (*IOSurfacePixelFormatFunc)(IOSurfacePtr io_surface);
 
 #import <OpenGL/OpenGL.h>
 #include "2D.h"
 #include "mozilla/RefPtr.h"
+#include "mozilla/RefCounted.h"
 
 struct _CGLContextObject;
 
 typedef _CGLContextObject* CGLContextObj;
 typedef struct CGContext* CGContextRef;
 typedef struct CGImage* CGImageRef;
 typedef uint32_t IOSurfaceID;
 
--- a/mozglue/linker/ElfLoader.h
+++ b/mozglue/linker/ElfLoader.h
@@ -3,16 +3,17 @@
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef ElfLoader_h
 #define ElfLoader_h
 
 #include <vector>
 #include <dlfcn.h>
 #include <signal.h>
+#include "mozilla/RefCounted.h"
 #include "mozilla/RefPtr.h"
 #include "mozilla/UniquePtr.h"
 #include "Zip.h"
 #include "Elfxx.h"
 #include "Mappable.h"
 
 /**
  * dlfcn.h replacement functions
--- a/mozglue/linker/Zip.h
+++ b/mozglue/linker/Zip.h
@@ -6,16 +6,17 @@
 #define Zip_h
 
 #include <cstring>
 #include <stdint.h>
 #include <vector>
 #include <zlib.h>
 #include "Utils.h"
 #include "mozilla/Assertions.h"
+#include "mozilla/RefCounted.h"
 #include "mozilla/RefPtr.h"
 
 /**
  * Helper class wrapping z_stream to avoid malloc() calls during
  * inflate. Do not use for deflate.
  * inflateInit allocates two buffers:
  * - one for its internal state, which is "approximately 10K bytes" according
  *   to inflate.h from zlib.