Backed out changeset b3e968d831ec

This commit is contained in:
Chris Jones 2010-08-19 19:04:21 -05:00
Родитель a52080a429
Коммит 8ae1282ff9
2 изменённых файлов: 1 добавлений и 16 удалений

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

@ -238,15 +238,6 @@ gfxPlatform::Init()
if (!gPlatform)
return NS_ERROR_OUT_OF_MEMORY;
gPlatform->mScreenReferenceSurface =
gPlatform->CreateOffscreenSurface(gfxIntSize(1,1),
gfxASurface::ImageFormatARGB32);
if (!gPlatform->mScreenReferenceSurface) {
NS_ERROR("Could not initialize mScreenReferenceSurface");
Shutdown();
return NS_ERROR_OUT_OF_MEMORY;
}
nsresult rv;
#if defined(XP_MACOSX) || defined(XP_WIN) || defined(ANDROID) // temporary, until this is implemented on others

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

@ -339,12 +339,6 @@ public:
virtual void FontsPrefsChanged(nsIPrefBranch *aPrefBranch, const char *aPref);
/**
* 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; }
protected:
gfxPlatform();
virtual ~gfxPlatform();
@ -362,8 +356,8 @@ protected:
private:
virtual qcms_profile* GetPlatformCMSOutputProfile();
nsRefPtr<gfxASurface> mScreenReferenceSurface;
nsTArray<PRUint32> mCJKPrefLangs;
nsCOMPtr<nsIObserver> overrideObserver;
};