Bug 853169 - Initialize the output profile at gfxPlatform::Init() time. r=jrmuizel

This commit is contained in:
Joe Drew 2013-03-20 22:25:43 -04:00
parent 9f32f2b334
commit 393320f48c
2 changed files with 10 additions and 2 deletions

View File

@ -384,6 +384,8 @@ gfxPlatform::Init()
}
gPlatform->mOrientationSyncMillis = Preferences::GetUint("layers.orientation.sync.timeout", (uint32_t)0);
CreateCMSOutputProfile();
}
void
@ -1428,8 +1430,8 @@ gfxPlatform::GetPlatformCMSOutputProfile()
return nullptr;
}
qcms_profile *
gfxPlatform::GetCMSOutputProfile()
void
gfxPlatform::CreateCMSOutputProfile()
{
if (!gCMSOutputProfile) {
/* Determine if we're using the internal override to force sRGB as
@ -1471,7 +1473,11 @@ gfxPlatform::GetCMSOutputProfile()
bug 444661 for details. */
qcms_profile_precache_output_transform(gCMSOutputProfile);
}
}
qcms_profile *
gfxPlatform::GetCMSOutputProfile()
{
return gCMSOutputProfile;
}

View File

@ -592,6 +592,8 @@ private:
*/
static void Init();
static void CreateCMSOutputProfile();
virtual qcms_profile* GetPlatformCMSOutputProfile();
nsRefPtr<gfxASurface> mScreenReferenceSurface;