Backed out changeset 8151f4102646 (bug 1249640)

This commit is contained in:
Sebastian Hengst 2016-02-24 19:01:50 +01:00
parent 7ceeb44c7e
commit bdc8da6aac
3 changed files with 10 additions and 4 deletions

View File

@ -426,6 +426,14 @@ gfxPlatformMac::ReadAntiAliasingThreshold()
return threshold; 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 bool
gfxPlatformMac::UseProgressivePaint() gfxPlatformMac::UseProgressivePaint()
{ {

View File

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

View File

@ -348,10 +348,6 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
*aStatus = nsIGfxInfo::FEATURE_STATUS_OK; *aStatus = nsIGfxInfo::FEATURE_STATUS_OK;
return NS_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;
} }
} }