зеркало из https://github.com/mozilla/pjs.git
Backed out changeset b3e968d831ec
This commit is contained in:
Родитель
a52080a429
Коммит
8ae1282ff9
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче