mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1249640: Part 3 Update Mac to use the new blocking. r=mchang
This commit is contained in:
parent
c9f0009de1
commit
ea90851b27
@ -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()
|
||||
{
|
||||
|
@ -90,8 +90,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool UseAcceleratedSkiaCanvas() override;
|
||||
|
||||
virtual bool UseProgressivePaint() override;
|
||||
virtual already_AddRefed<mozilla::gfx::VsyncSource> CreateHardwareVsyncSource() override;
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user