зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1188705 (part 1) - Remove gfxASurface::GetMemoryLocation(). r=seth.
It's unused. --HG-- extra : rebase_source : 4f2458e27ef61c2d611ecb7e0c936ae23d7921ca
This commit is contained in:
Родитель
3d6e229b53
Коммит
de6e01187a
|
@ -499,12 +499,6 @@ gfxASurface::GetSubpixelAntialiasingEnabled()
|
|||
#endif
|
||||
}
|
||||
|
||||
gfxMemoryLocation
|
||||
gfxASurface::GetMemoryLocation() const
|
||||
{
|
||||
return gfxMemoryLocation::IN_PROCESS_HEAP;
|
||||
}
|
||||
|
||||
int32_t
|
||||
gfxASurface::BytePerPixelFromFormat(gfxImageFormat format)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -606,9 +606,3 @@ gfxXlibSurface::GetGLXPixmap()
|
|||
return mGLXPixmap;
|
||||
}
|
||||
#endif
|
||||
|
||||
gfxMemoryLocation
|
||||
gfxXlibSurface::GetMemoryLocation() const
|
||||
{
|
||||
return gfxMemoryLocation::OUT_OF_PROCESS;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче