Bug 1249640: Part 3 Update Mac to use the new blocking. r=mchang

This commit is contained in:
Milan Sreckovic 2016-02-24 10:25:00 +01:00
parent c9f0009de1
commit ea90851b27
4 changed files with 5 additions and 11 deletions

View File

@ -426,14 +426,6 @@ gfxPlatformMac::ReadAntiAliasingThreshold()
return threshold;
}
bool
gfxPlatformMac::UseAcceleratedSkiaCanvas()
{
// Lion or later is required
// Bug 1249659 - Lion has some gfx issues so disabled on lion and earlier
return nsCocoaFeatures::OnMountainLionOrLater() && gfxPlatform::UseAcceleratedSkiaCanvas();
}
bool
gfxPlatformMac::UseProgressivePaint()
{

View File

@ -90,8 +90,6 @@ public:
return true;
}
virtual bool UseAcceleratedSkiaCanvas() override;
virtual bool UseProgressivePaint() override;
virtual already_AddRefed<mozilla::gfx::VsyncSource> CreateHardwareVsyncSource() override;

View File

@ -58,7 +58,7 @@ function run_test() {
case "Darwin":
gfxInfo.spoofVendorID("0xabcd");
gfxInfo.spoofDeviceID("0x9876");
gfxInfo.spoofOSVersion(0x1060);
gfxInfo.spoofOSVersion(0x1080);
break;
case "Android":
gfxInfo.spoofVendorID("abcd");

View File

@ -348,6 +348,10 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
*aStatus = nsIGfxInfo::FEATURE_STATUS_OK;
return NS_OK;
}
} else if (aFeature == nsIGfxInfo::FEATURE_CANVAS2D_ACCELERATION) {
// See bug 1249659
*aStatus = (os > DRIVER_OS_OS_X_10_7) ? nsIGfxInfo::FEATURE_STATUS_OK : nsIGfxInfo::FEATURE_BLOCKED_OS_VERSION;
return NS_OK;
}
}