Bug 1728991 - Drop some unused gfxASurface includes. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D124456
This commit is contained in:
Jeff Muizelaar 2021-09-03 16:00:34 +00:00
parent 7bd3a20ff4
commit 4d2306308f
9 changed files with 1 additions and 17 deletions

View File

@ -12,7 +12,6 @@
#include "nsRegion.h"
#include <memory>
class gfxASurface;
namespace mozilla {
namespace layers {
class SurfaceTextureImage;
@ -92,10 +91,6 @@ class GLContextEGL final : public GLContext {
virtual void GetWSIInfo(nsCString* const out) const override;
// hold a reference to the given surface
// for the lifetime of this context.
void HoldSurface(gfxASurface* aSurf);
EGLSurface GetEGLSurface() const { return mSurface; }
bool HasExtBufferAge() const;
@ -138,7 +133,6 @@ class GLContextEGL final : public GLContext {
const EGLSurface mFallbackSurface;
EGLSurface mSurfaceOverride = EGL_NO_SURFACE;
RefPtr<gfxASurface> mThebesSurface;
bool mBound = false;
bool mIsPBuffer = false;

View File

@ -51,7 +51,6 @@
# error "Platform not recognized"
#endif
#include "gfxASurface.h"
#include "gfxCrashReporterUtils.h"
#include "gfxFailure.h"
#include "gfxPlatform.h"
@ -583,10 +582,6 @@ void GLContextEGL::GetWSIInfo(nsCString* const out) const {
#endif
}
// hold a reference to the given surface
// for the lifetime of this context.
void GLContextEGL::HoldSurface(gfxASurface* aSurf) { mThebesSurface = aSurf; }
bool GLContextEGL::HasExtBufferAge() const {
return mEgl->IsExtensionSupported(EGLExtension::EXT_buffer_age);
}

View File

@ -6,7 +6,6 @@
#include "nsDeviceContext.h"
#include <algorithm> // for max
#include "gfxASurface.h" // for gfxASurface, etc
#include "gfxContext.h"
#include "gfxImageSurface.h" // for gfxImageSurface
#include "gfxPoint.h" // for gfxSize

View File

@ -14,7 +14,6 @@
#include "gfxMatrix.h"
#include "gfxUtils.h"
#include "gfxASurface.h"
#include "gfxPattern.h"
#include "gfxPlatform.h"

View File

@ -8,7 +8,6 @@
#include "gfxTypes.h"
#include "gfxASurface.h"
#include "gfxPoint.h"
#include "gfxRect.h"
#include "gfxMatrix.h"

View File

@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxDrawable.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "gfxPlatform.h"
#include "gfx2DGlue.h"

View File

@ -7,7 +7,6 @@
#include "gfxUtils.h"
#include "gfxTypes.h"
#include "gfxASurface.h"
#include "gfxPlatform.h"
#include "gfx2DGlue.h"
#include "gfxGradientCache.h"

View File

@ -9,6 +9,7 @@
#include "WinCompositorWidget.h"
class nsWindow;
class gfxASurface;
namespace mozilla {
namespace widget {

View File

@ -7,7 +7,6 @@
#define widget_windows_WinCompositorWidget_h
#include "CompositorWidget.h"
#include "gfxASurface.h"
#include "mozilla/Atomics.h"
#include "mozilla/gfx/CriticalSection.h"
#include "mozilla/gfx/Point.h"