Bug 1728414 - Remove unused ScreenReferenceSurface() function. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D124113
This commit is contained in:
Jeff Muizelaar 2021-09-02 14:02:42 +00:00
Родитель 9a412cb99d
Коммит dd567d92b7
2 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -915,12 +915,6 @@ void gfxPlatform::Init() {
MOZ_CRASH("Could not initialize gfxPlatformFontList");
}
gPlatform->mScreenReferenceSurface = gPlatform->CreateOffscreenSurface(
IntSize(1, 1), SurfaceFormat::A8R8G8B8_UINT32);
if (!gPlatform->mScreenReferenceSurface) {
MOZ_CRASH("Could not initialize mScreenReferenceSurface");
}
gPlatform->mScreenReferenceDrawTarget =
gPlatform->CreateOffscreenContentDrawTarget(IntSize(1, 1),
SurfaceFormat::B8G8R8A8);

Просмотреть файл

@ -627,12 +627,6 @@ class gfxPlatform : public mozilla::layers::MemoryPressureListener {
static void FlushFontAndWordCaches();
/**
* Returns a 1x1 surface that can be used to create graphics contexts
* for measuring text etc as if they will be rendered to the screen
*/
gfxASurface* ScreenReferenceSurface() { return mScreenReferenceSurface; }
/**
* Returns a 1x1 DrawTarget that can be used for measuring text etc. as
* it would measure if rendered on-screen. Guaranteed to return a