Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow

This commit is contained in:
Jonathan Watt 2014-04-16 01:41:40 +01:00
parent 192cfd4627
commit 200e95e9eb
95 changed files with 16 additions and 132 deletions

View File

@ -7,8 +7,6 @@
#include "nsIImageLoadingContent.h"
#include "nsExpirationTracker.h"
#include "imgIRequest.h"
#include "gfxASurface.h"
#include "gfxPoint.h"
#include "mozilla/dom/Element.h"
#include "nsTHashtable.h"
#include "mozilla/dom/HTMLCanvasElement.h"

View File

@ -6,6 +6,8 @@
#ifndef CANVASIMAGECACHE_H_
#define CANVASIMAGECACHE_H_
#include "nsSize.h"
namespace mozilla {
namespace dom {
class Element;
@ -16,9 +18,6 @@ class SourceSurface;
} // namespace gfx
} // namespace mozilla
class imgIRequest;
class gfxASurface;
#include "gfxPoint.h"
namespace mozilla {

View File

@ -23,7 +23,6 @@
#include "nsLayoutUtils.h"
#include "GLContextProvider.h"
#include "gfxImageSurface.h"
#include "mozilla/LinkedList.h"
#include "mozilla/CheckedInt.h"

View File

@ -20,7 +20,6 @@
#include "nsString.h"
#include "nsDebug.h"
#include "gfxImageSurface.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "GLContext.h"

View File

@ -8,7 +8,6 @@
#include "ImageEncoder.h"
#include "jsapi.h"
#include "jsfriendapi.h"
#include "gfxImageSurface.h"
#include "Layers.h"
#include "mozilla/Base64.h"
#include "mozilla/CheckedInt.h"

View File

@ -42,7 +42,6 @@
#include "nsViewManager.h"
#include "nsIDOMHTMLCanvasElement.h"
#include "gfxImageSurface.h"
#include "nsLayoutUtils.h"
#include "nsComputedDOMStyle.h"
#include "nsIPresShell.h"

View File

@ -15,7 +15,6 @@
#include "nsError.h"
#include "mozilla/EventForwards.h"
class gfxASurface;
class gfxContext;
class nsCString;
struct nsIntRect;

View File

@ -43,7 +43,6 @@ typedef IOSurfacePtr (*IOSurfaceContextGetSurfaceFunc)(CGContextRef ref);
#include "2D.h"
#include "mozilla/RefPtr.h"
class gfxASurface;
struct _CGLContextObject;
typedef _CGLContextObject* CGLContextObj;

View File

@ -27,7 +27,6 @@
#include "GLDefs.h"
#include "GLLibraryLoader.h"
#include "gfxImageSurface.h"
#include "gfx3DMatrix.h"
#include "nsISupportsImpl.h"
#include "plstr.h"

View File

@ -7,13 +7,12 @@
#define GLCONTEXTPROVIDER_H_
#include "GLContextTypes.h"
#include "gfxTypes.h"
#include "gfxPoint.h"
#include "nsAutoPtr.h"
#include "SurfaceTypes.h"
#include "nsSize.h" // for gfxIntSize (needed by GLContextProviderImpl.h below)
class nsIWidget;
class gfxASurface;
namespace mozilla {
namespace gl {

View File

@ -9,9 +9,6 @@
#include "nsDebug.h"
#include "nsIWidget.h"
#include <OpenGL/gl.h>
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "gfxQuartzSurface.h"
#include "gfxPrefs.h"
#include "gfxFailure.h"
#include "prenv.h"

View File

@ -100,7 +100,6 @@ public:
#include "gfxUtils.h"
#include "gfxFailure.h"
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "GLContextProvider.h"
#include "GLLibraryEGL.h"

View File

@ -26,7 +26,6 @@
#include "GLXLibrary.h"
#include "gfxXlibSurface.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "GLContextGLX.h"
#include "gfxUtils.h"

View File

@ -8,8 +8,6 @@
#include "GLLibraryLoader.h"
#include "nsDebug.h"
#include "nsIWidget.h"
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "gfxWindowsSurface.h"

View File

@ -9,6 +9,7 @@
#include "OGLShaderProgram.h"
#include "gfxTypes.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "ScopedGLHelpers.h"
#include "mozilla/gfx/2D.h"
#include "gfx2DGlue.h"

View File

@ -18,7 +18,6 @@
#include <queue>
// Forwards:
class gfxImageSurface;
namespace mozilla {
namespace gl {
class GLContext;

View File

@ -5,7 +5,6 @@
#include "SharedSurfaceIO.h"
#include "GLContextCGL.h"
#include "gfxImageSurface.h"
#include "mozilla/gfx/MacIOSurface.h"
#include "mozilla/DebugOnly.h"
#include "ScopedGLHelpers.h"

View File

@ -6,6 +6,7 @@
#ifndef SHARED_SURFACEIO_H_
#define SHARED_SURFACEIO_H_
#include "gfxImageSurface.h"
#include "SharedSurfaceGL.h"
#include "mozilla/RefPtr.h"

View File

@ -10,7 +10,6 @@
#include "SharedSurface.h" // for SharedSurface
#include "SharedSurfaceGL.h" // for SharedSurface_GL, etc
#include "SurfaceTypes.h" // for APITypeT, APITypeT::OpenGL, etc
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxMatrix.h" // for gfxMatrix
#include "gfxPattern.h" // for gfxPattern, etc
#include "gfxPlatform.h" // for gfxPlatform, gfxImageFormat

View File

@ -9,7 +9,6 @@
#include <stdint.h> // for uint32_t
#include "GLContextTypes.h" // for GLContext
#include "Layers.h" // for CanvasLayer, etc
#include "gfxASurface.h" // for gfxASurface
#include "gfxContext.h" // for gfxContext, etc
#include "gfxTypes.h"
#include "gfxPlatform.h" // for gfxImageFormat

View File

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "D3D9SurfaceImage.h"
#include "gfxImageSurface.h"
#include "gfx2DGlue.h"
#include "mozilla/layers/TextureD3D9.h"
#include "mozilla/gfx/Types.h"

View File

@ -11,7 +11,6 @@
#include "mozilla/layers/ImageBridgeChild.h"
#include "mozilla/layers/GrallocTextureClient.h"
#include "gfx2DGlue.h"
#include "gfxImageSurface.h"
#include "YCbCrUtils.h" // for YCbCr conversions
#include <ColorConverter.h>

View File

@ -8,7 +8,6 @@
#include <string.h> // for memcpy, memset
#include "SharedTextureImage.h" // for SharedTextureImage
#include "gfx2DGlue.h"
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPlatform.h" // for gfxPlatform
#include "gfxUtils.h" // for gfxUtils
#include "mozilla/RefPtr.h" // for TemporaryRef

View File

@ -8,8 +8,8 @@
#include <stdint.h> // for uint32_t, uint8_t, uint64_t
#include <sys/types.h> // for int32_t
#include "gfxTypes.h"
#include "ImageTypes.h" // for ImageFormat, etc
#include "gfxASurface.h" // for gfxASurface, etc
#include "mozilla/Assertions.h" // for MOZ_ASSERT_HELPER2
#include "mozilla/Mutex.h" // for Mutex
#include "mozilla/ReentrantMonitor.h" // for ReentrantMonitorAutoEnter, etc

View File

@ -5,7 +5,6 @@
#include "ImageDataSerializer.h"
#include "gfx2DGlue.h" // for SurfaceFormatToImageFormat
#include "gfxASurface.h" // for gfxASurface
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPoint.h" // for gfxIntSize
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc

View File

@ -47,7 +47,6 @@
#include "prlog.h" // for PRLogModuleInfo
#include "gfx2DGlue.h"
class gfxASurface;
class gfxContext;
extern uint8_t gLayerManagerLayerBuilder;

View File

@ -10,7 +10,6 @@
#include "mozilla/gfx/MacIOSurface.h"
#include "mozilla/gfx/Point.h"
#include "mozilla/layers/TextureClient.h"
#include "gfxImageSurface.h"
namespace mozilla {

View File

@ -6,8 +6,8 @@
#ifndef ROTATEDBUFFER_H_
#define ROTATEDBUFFER_H_
#include "gfxTypes.h"
#include <stdint.h> // for uint32_t
#include "gfxASurface.h" // for gfxASurface, etc
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/RefPtr.h" // for RefPtr, TemporaryRef
#include "mozilla/gfx/2D.h" // for DrawTarget, etc

View File

@ -12,8 +12,6 @@
#include "nsCOMPtr.h" // for already_AddRefed
#include "mozilla/gfx/Point.h" // for IntSize
class gfxASurface;
// Split into a separate header from ImageLayers.h due to GLContext.h dependence
// Implementation remains in ImageLayers.cpp

View File

@ -6,7 +6,6 @@
#ifndef GFX_AUTOMASKDATA_H_
#define GFX_AUTOMASKDATA_H_
#include "gfxASurface.h"
#include "mozilla/layers/LayersSurfaces.h" // for SurfaceDescriptor
namespace mozilla {
@ -15,8 +14,7 @@ namespace layers {
/**
* Drawing with a mask requires a mask surface and a transform.
*
* This helper class manages the gfxASurface
* logic.
* This helper class manages the SourceSurface logic.
*/
class MOZ_STACK_CLASS AutoMoz2DMaskData {
public:

View File

@ -9,13 +9,6 @@
#include "Layers.h" // for Layer (ptr only), etc
#include "basic/BasicImplData.h" // for BasicImplData
#include "basic/BasicLayers.h" // for BasicLayerManager
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxContext.h" // for gfxContext
#include "gfxPattern.h" // for gfxPattern, etc
#include "gfxUtils.h" // for gfxUtils
#ifdef MOZ_X11
#include "gfxXlibSurface.h" // for gfxXlibSurface
#endif
#include "mozilla/mozalloc.h" // for operator new
#include "nsAutoPtr.h" // for nsRefPtr, getter_AddRefs, etc
#include "nsCOMPtr.h" // for already_AddRefed

View File

@ -9,7 +9,6 @@
#include "ImageTypes.h" // for ImageFormat, etc
#include "cairo.h" // for cairo_user_data_key_t
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPlatform.h" // for gfxPlatform, gfxImageFormat
#include "gfxUtils.h" // for gfxUtils
#include "mozilla/mozalloc.h" // for operator delete[], etc

View File

@ -11,8 +11,6 @@
#include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc
#include "mozilla/gfx/Types.h"
class gfxASurface;
namespace mozilla {
namespace layers {

View File

@ -9,7 +9,6 @@
#include "BasicImplData.h" // for BasicImplData
#include "BasicLayers.h" // for BasicLayerManager
#include "ReadbackLayer.h" // for ReadbackLayer
#include "gfxASurface.h" // for gfxASurface
#include "gfxContext.h" // for gfxContext, etc
#include "mozilla/Attributes.h" // for MOZ_DELETE, MOZ_STACK_CLASS
#include "mozilla/Maybe.h" // for Maybe

View File

@ -10,7 +10,6 @@
#include "ReadbackProcessor.h" // for ReadbackProcessor::Update, etc
#include "RenderTrace.h" // for RenderTraceInvalidateEnd, etc
#include "BasicLayersImpl.h" // for AutoMaskData, etc
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxContext.h" // for gfxContext, etc
#include "gfxRect.h" // for gfxRect
#include "gfxUtils.h" // for gfxUtils

View File

@ -10,7 +10,6 @@
#include "SurfaceStream.h" // for SurfaceStream
#include "SurfaceTypes.h" // for SurfaceStreamHandle
#include "gfx2DGlue.h" // for ImageFormatToSurfaceFormat
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxPlatform.h" // for gfxPlatform
#include "mozilla/gfx/BaseSize.h" // for BaseSize
#include "mozilla/layers/CompositableForwarder.h"

View File

@ -6,7 +6,6 @@
#include "ClientLayerManager.h" // for ClientLayerManager, etc
#include "ImageContainer.h" // for AutoLockImage, etc
#include "ImageLayers.h" // for ImageLayer
#include "gfxASurface.h" // for gfxASurface
#include "mozilla/Attributes.h" // for MOZ_OVERRIDE
#include "mozilla/RefPtr.h" // for RefPtr
#include "mozilla/layers/CompositorTypes.h"

View File

@ -6,7 +6,6 @@
#include "ClientLayerManager.h"
#include "CompositorChild.h" // for CompositorChild
#include "GeckoProfiler.h" // for PROFILER_LABEL
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxPrefs.h" // for gfxPrefs::LayersTileWidth/Height
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/Hal.h"

View File

@ -9,7 +9,6 @@
#include <stdint.h> // for uint32_t
#include "GeckoProfiler.h" // for PROFILER_LABEL
#include "client/ClientLayerManager.h" // for ClientLayerManager, etc
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxContext.h" // for gfxContext
#include "gfxRect.h" // for gfxRect
#include "gfxPrefs.h" // for gfxPrefs

View File

@ -10,7 +10,6 @@
#include "mozilla/layers/TextureClient.h" // for TextureClient, etc
#include "mozilla/layers/TextureClientOGL.h"
#include "mozilla/mozalloc.h" // for operator delete, etc
#include "gfxASurface.h" // for gfxContentType
#ifdef XP_WIN
#include "gfxWindowsPlatform.h" // for gfxWindowsPlatform
#include "mozilla/layers/TextureD3D11.h"

View File

@ -16,7 +16,6 @@
#include "mozilla/layers/LayersTypes.h" // for LayersBackend
#include "mozilla/layers/PCompositableChild.h" // for PCompositableChild
#include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR, etc
#include "gfxASurface.h" // for gfxContentType
namespace mozilla {
namespace layers {

View File

@ -28,7 +28,6 @@
#include "nsTArray.h" // for nsTArray
class gfxContext;
class gfxASurface;
namespace mozilla {
namespace gfx {

View File

@ -9,7 +9,6 @@
#include "ImageTypes.h" // for ImageFormat::PLANAR_YCBCR, etc
#include "SharedTextureImage.h" // for SharedTextureImage::Data, etc
#include "gfx2DGlue.h" // for ImageFormatToSurfaceFormat
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxPlatform.h" // for gfxPlatform
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/RefPtr.h" // for RefPtr, TemporaryRef

View File

@ -46,7 +46,6 @@
#ifdef MOZ_ANDROID_OMTC
# include "gfxReusableImageSurfaceWrapper.h"
# include "gfxImageSurface.h"
#else
# include "gfxReusableSharedImageSurfaceWrapper.h"
# include "gfxSharedImageSurface.h"

View File

@ -29,7 +29,6 @@
#include "nsISupportsImpl.h" // for TextureImage::AddRef, etc
class gfxReusableSurfaceWrapper;
class gfxASurface;
class gfxImageSurface;
namespace mozilla {

View File

@ -36,8 +36,6 @@
#include "pratom.h" // For PR_ATOMIC_INCREMENT/DECREMENT
#include "gfxPrefs.h"
class gfxImageSurface;
namespace mozilla {
namespace layers {

View File

@ -9,7 +9,6 @@
#include "Units.h" // for LayerRect, LayerPixel, etc
#include "gfx2DGlue.h" // for ToMatrix4x4
#include "gfx3DMatrix.h" // for gfx3DMatrix
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPrefs.h" // for gfxPrefs
#include "gfxUtils.h" // for gfxUtils, etc
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc

View File

@ -53,7 +53,6 @@
#include "GeckoProfiler.h"
#include "TextRenderer.h" // for TextRenderer
class gfxASurface;
class gfxContext;
struct nsIntSize;

View File

@ -29,7 +29,6 @@
#include "nscore.h" // for nsAString, etc
#include "LayerTreeInvalidation.h"
class gfxASurface;
class gfxContext;
struct nsIntPoint;
struct nsIntSize;

View File

@ -7,7 +7,6 @@
#include "CompositableHost.h" // for CompositableHost
#include "LayersLogging.h" // for AppendToString
#include "gfx2DGlue.h" // for ToIntSize
#include "gfxImageSurface.h" // for gfxImageSurface
#include "mozilla/gfx/2D.h" // for DataSourceSurface, Factory
#include "mozilla/ipc/Shmem.h" // for Shmem
#include "mozilla/layers/Compositor.h" // for Compositor

View File

@ -26,7 +26,6 @@
#include "nscore.h" // for nsACString
#include "mozilla/layers/AtomicRefCountedWithFinalize.h"
class gfxImageSurface;
class gfxReusableSurfaceWrapper;
struct nsIntPoint;
struct nsIntSize;

View File

@ -6,7 +6,6 @@
#include "CanvasLayerD3D10.h"
#include "../d3d9/Nv3DVUtils.h"
#include "gfxImageSurface.h"
#include "gfxWindowsSurface.h"
#include "gfxWindowsPlatform.h"
#include "SurfaceStream.h"

View File

@ -10,8 +10,6 @@
#include "mozilla/Preferences.h"
class gfxASurface;
namespace mozilla {
namespace gl {

View File

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "ImageLayerD3D10.h"
#include "gfxImageSurface.h"
#include "gfxD2DSurface.h"
#include "gfxWindowsSurface.h"
#include "yuv_convert.h"

View File

@ -6,7 +6,6 @@
#include "TextureD3D11.h"
#include "CompositorD3D11.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "Effects.h"
#include "mozilla/layers/YCbCrImageDataSerializer.h"
#include "gfxWindowsPlatform.h"

View File

@ -6,7 +6,6 @@
#include "mozilla/layers/PLayerTransaction.h"
#include "gfxImageSurface.h"
#include "gfxWindowsSurface.h"
#include "gfxWindowsPlatform.h"
#include "SurfaceStream.h"

View File

@ -9,8 +9,6 @@
#include "LayerManagerD3D9.h"
#include "GLContextTypes.h"
class gfxASurface;
namespace mozilla {
namespace layers {

View File

@ -12,7 +12,6 @@
#include "ImageLayerD3D9.h"
#include "ThebesLayerD3D9.h"
#include "gfxPlatform.h"
#include "gfxImageSurface.h"
#include "gfx2DGlue.h"
#include "yuv_convert.h"
#include "nsIServiceManager.h"

View File

@ -8,7 +8,6 @@
#include "Layers.h"
#include "LayerManagerD3D9.h"
#include "gfxImageSurface.h"
#include "ReadbackProcessor.h"
namespace mozilla {

View File

@ -8,7 +8,6 @@
#include "ISurfaceAllocator.h"
#include <sys/types.h> // for int32_t
#include "gfx2DGlue.h" // for IntSize
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxPlatform.h" // for gfxPlatform, gfxImageFormat
#include "gfxSharedImageSurface.h" // for gfxSharedImageSurface
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc

View File

@ -22,7 +22,6 @@
#include "nsIMemoryReporter.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "gfx2DGlue.h"
#include "GLContext.h"

View File

@ -18,8 +18,6 @@
#define MOZ_HAVE_SURFACEDESCRIPTORGRALLOC
#define MOZ_HAVE_PLATFORM_SPECIFIC_LAYER_BUFFERS
class gfxASurface;
namespace mozilla {
namespace layers {

View File

@ -13,7 +13,6 @@
#include "cairo-xlib.h"
#include <stdint.h> // for uint32_t
#include "GLDefs.h" // for GLenum
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxPlatform.h" // for gfxPlatform
#include "gfxXlibSurface.h" // for gfxXlibSurface
#include "gfx2DGlue.h" // for Moz2D transistion helpers

View File

@ -14,7 +14,6 @@
#include "RenderTrace.h" // for RenderTraceScope
#include "ShadowLayerChild.h" // for ShadowLayerChild
#include "gfx2DGlue.h" // for Moz2D transition helpers
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPlatform.h" // for gfxImageFormat, gfxPlatform
#include "gfxSharedImageSurface.h" // for gfxSharedImageSurface
#include "ipc/IPCMessageUtils.h" // for gfxContentType, null_t

View File

@ -23,7 +23,6 @@
struct nsIntPoint;
struct nsIntRect;
class gfxASurface;
namespace mozilla {
namespace layers {

View File

@ -20,8 +20,6 @@
#include "nsISupportsImpl.h" // for Image::AddRef
#include "mozilla/ipc/Shmem.h"
class gfxASurface;
namespace mozilla {
namespace layers {

View File

@ -12,8 +12,6 @@
#include "nsDebug.h" // for NS_WARNING
#include "nsISupportsImpl.h" // for MOZ_COUNT_CTOR
class gfxASurface;
#ifndef MOZILLA_LAYERS_SHAREDPLANARYCBCRIMAGE_H
#define MOZILLA_LAYERS_SHAREDPLANARYCBCRIMAGE_H

View File

@ -15,8 +15,6 @@
#include "mozilla/gfx/Types.h" // for SurfaceFormat
#include "nsCOMPtr.h" // for already_AddRefed
class gfxASurface;
namespace mozilla {
namespace ipc {
class Shmem;

View File

@ -22,7 +22,6 @@
#include "nsDebug.h" // for NS_ERROR, NS_WARNING
#include "nsString.h" // for nsAutoCString
class gfxImageSurface;
namespace mozilla {
namespace gl {

View File

@ -14,7 +14,6 @@
#include "LayerScope.h" // for LayerScope
#include "gfx2DGlue.h" // for ThebesFilter
#include "gfx3DMatrix.h" // for gfx3DMatrix
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxCrashReporterUtils.h" // for ScopedGfxFeatureReporter
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxMatrix.h" // for gfxMatrix

View File

@ -11,8 +11,6 @@
#include "mozilla/layers/ISurfaceAllocator.h"
#include "mozilla/layers/ShadowLayerUtilsGralloc.h"
#include "gfx2DGlue.h"
#include "gfxASurface.h"
#include "gfxImageSurface.h" // for gfxImageSurface
namespace mozilla {
namespace layers {

View File

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "GLContext.h"
#include "gfxImageSurface.h"
#include "gfx2DGlue.h"
#include <ui/GraphicBuffer.h>
#include "GrallocImages.h" // for GrallocImage

View File

@ -14,7 +14,6 @@
#include "SurfaceStream.h" // for SurfaceStream
#include "SurfaceTypes.h" // for SharedSurfaceType, etc
#include "gfx2DGlue.h" // for ContentForFormat, etc
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxReusableSurfaceWrapper.h" // for gfxReusableSurfaceWrapper
#include "mozilla/gfx/2D.h" // for DataSourceSurface
#include "mozilla/gfx/BaseSize.h" // for BaseSize

View File

@ -36,7 +36,6 @@
#endif
#endif
class gfxImageSurface;
class gfxReusableSurfaceWrapper;
class nsIntRegion;
struct nsIntPoint;

View File

@ -13,7 +13,6 @@
#include "mozilla/RefPtr.h"
class gfxContext;
class gfxImageSurface;
struct gfxRect;
struct gfxRGBA;
class gfxCornerSizes;

View File

@ -6,6 +6,7 @@
#include "gfxDrawable.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "gfxColor.h"
#ifdef MOZ_X11

View File

@ -12,7 +12,6 @@
#include "gfxXlibNativeRenderer.h"
#endif
class gfxASurface;
class gfxContext;
/**

View File

@ -7,7 +7,6 @@
#define GFXQTNATIVERENDER_H_
#include "gfxColor.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "gfxXlibSurface.h"

View File

@ -14,6 +14,7 @@
#include "X11/Xlib.h"
#endif
class gfxImageSurface;
class gfxFontconfigUtils;
class QWindow;

View File

@ -10,7 +10,6 @@
#include <map>
#include <android/log.h>
#include "nsSurfaceTexture.h"
#include "gfxImageSurface.h"
#include "AndroidBridge.h"
#include "nsThreadUtils.h"
#include "mozilla/gfx/Matrix.h"

View File

@ -13,8 +13,6 @@
#include "gfxPlatform.h"
#include "GLDefs.h"
class gfxASurface;
namespace mozilla {
namespace gfx {
class Matrix4x4;

View File

@ -67,7 +67,6 @@ class nsISelection;
template<class E> class nsCOMArray;
class nsWeakFrame;
class nsIScrollableFrame;
class gfxASurface;
class gfxContext;
class nsIDOMEvent;
class nsDisplayList;

View File

@ -7,7 +7,6 @@
#include "nsSVGFilterFrame.h"
// Keep others in (case-insensitive) order:
#include "gfxASurface.h"
#include "gfxUtils.h"
#include "nsGkAtoms.h"
#include "nsRenderingContext.h"

View File

@ -11,7 +11,6 @@
// Keep others in (case-insensitive) order:
#include "gfx2DGlue.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "gfxMatrix.h"
#include "gfxPlatform.h"
#include "gfxRect.h"

View File

@ -27,9 +27,7 @@
#include "mozilla/Constants.h"
#include <algorithm>
class gfxASurface;
class gfxContext;
class gfxImageSurface;
class gfxPattern;
class nsFrameList;
class nsIContent;

View File

@ -38,7 +38,6 @@
#include "transportlayerdtls.h"
#include "transportlayerice.h"
#include "runnable_utils.h"
#include "gfxImageSurface.h"
#include "libyuv/convert.h"
#include "mozilla/gfx/Point.h"
#include "mozilla/gfx/Types.h"

View File

@ -13,7 +13,6 @@
#include "nsPrintSettingsX.h"
#include "gfxQuartzSurface.h"
#include "gfxImageSurface.h"
// This must be the last include:
#include "nsObjCExceptions.h"

View File

@ -27,7 +27,6 @@
#include "nsIDocument.h"
#include "nsIContent.h"
#include "nsView.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "nsCocoaUtils.h"
#include "mozilla/gfx/2D.h"

View File

@ -36,7 +36,6 @@
#include "imgLoader.h"
#include "imgRequestProxy.h"
#include "nsMenuItemX.h"
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "imgIContainer.h"
#include "nsCocoaUtils.h"

View File

@ -7,6 +7,7 @@
#ifndef nsDragService_h__
#define nsDragService_h__
#include "nsAutoPtr.h"
#include "nsBaseDragService.h"
#include "nsIObserver.h"
#include "nsAutoRef.h"

View File

@ -5,19 +5,13 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "gfxASurface.h"
#include "gfxImageSurface.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/RefPtr.h"
#include "nsImageToPixbuf.h"
#include "imgIContainer.h"
#include "mozilla/gfx/2D.h"
#include "mozilla/RefPtr.h"
#include "nsAutoPtr.h"
#include "nsImageToPixbuf.h"
using mozilla::gfx::DataSourceSurface;
using mozilla::gfx::SurfaceFormat;
using mozilla::RefPtr;

View File

@ -9,10 +9,6 @@
#include "nsIImageToPixbuf.h"
#include "mozilla/Attributes.h"
class gfxASurface;
class gfxPattern;
class gfxImageSurface;
namespace mozilla {
namespace gfx {
class SourceSurface;

View File

@ -60,8 +60,6 @@
#include "nsAutoPtr.h"
#include "gfxQtPlatform.h"
#include "gfxContext.h"
#include "gfxImageSurface.h"
#include "nsIDOMWheelEvent.h"
@ -71,7 +69,6 @@
#include "keysym2ucs.h"
#endif
#include "gfxUtils.h"
#include "Layers.h"
#include "GLContextProvider.h"

View File

@ -35,7 +35,6 @@
#include "nsCRT.h"
#include "nsDirectoryServiceDefs.h"
#include "nsUnicharUtils.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "nsRect.h"
#include "nsMathUtils.h"

View File

@ -12,11 +12,10 @@
#include "nsIDOMDocument.h"
#include "nsIDOMDataTransfer.h"
#include "nsCOMPtr.h"
#include "nsRect.h"
#include "nsPoint.h"
#include "mozilla/RefPtr.h"
#include "gfxImageSurface.h"
// translucency level for drag images
#define DRAG_TRANSLUCENCY 0.65