Bug 1188705 (part 1) - Remove gfxASurface::GetMemoryLocation(). r=seth.

It's unused.

--HG--
extra : rebase_source : 4f2458e27ef61c2d611ecb7e0c936ae23d7921ca
This commit is contained in:
Nicholas Nethercote 2015-07-28 18:33:41 -07:00
parent 3d6e229b53
commit de6e01187a
6 changed files with 0 additions and 32 deletions

View File

@ -499,12 +499,6 @@ gfxASurface::GetSubpixelAntialiasingEnabled()
#endif
}
gfxMemoryLocation
gfxASurface::GetMemoryLocation() const
{
return gfxMemoryLocation::IN_PROCESS_HEAP;
}
int32_t
gfxASurface::BytePerPixelFromFormat(gfxImageFormat format)
{

View File

@ -159,12 +159,6 @@ public:
// to a sub-class of gfxASurface.)
virtual bool SizeOfIsMeasured() const { return false; }
/**
* Where does this surface's memory live? By default, we say it's in this
* process's heap.
*/
virtual gfxMemoryLocation GetMemoryLocation() const;
static int32_t BytePerPixelFromFormat(gfxImageFormat format);
virtual const mozilla::gfx::IntSize GetSize() const;

View File

@ -300,9 +300,3 @@ gfxWindowsSurface::GetSize() const
return mozilla::gfx::IntSize(cairo_win32_surface_get_width(mSurface),
cairo_win32_surface_get_height(mSurface));
}
gfxMemoryLocation
gfxWindowsSurface::GetMemoryLocation() const
{
return gfxMemoryLocation::IN_PROCESS_NONHEAP;
}

View File

@ -65,10 +65,6 @@ public:
const mozilla::gfx::IntSize GetSize() const;
// The memory used by this surface lives in this process's address space,
// but not in the heap.
virtual gfxMemoryLocation GetMemoryLocation() const;
private:
void MakeInvalid(mozilla::gfx::IntSize& size);

View File

@ -606,9 +606,3 @@ gfxXlibSurface::GetGLXPixmap()
return mGLXPixmap;
}
#endif
gfxMemoryLocation
gfxXlibSurface::GetMemoryLocation() const
{
return gfxMemoryLocation::OUT_OF_PROCESS;
}

View File

@ -85,10 +85,6 @@ public:
// Find a visual and colormap pair suitable for rendering to this surface.
bool GetColormapAndVisual(Colormap* colormap, Visual **visual);
// This surface is a wrapper around X pixmaps, which are stored in the X
// server, not the main application.
virtual gfxMemoryLocation GetMemoryLocation() const override;
#if defined(GL_PROVIDER_GLX)
GLXPixmap GetGLXPixmap();
#endif