Bug 1340076 - Force tiling to always be enabled on OSX. r=nical

This commit is contained in:
Matt Woodrow 2017-02-17 15:30:17 +13:00
Родитель a1529f8ac9
Коммит 535aad2d0d
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -149,7 +149,13 @@ already_AddRefed<PaintedLayer>
ClientLayerManager::CreatePaintedLayerWithHint(PaintedLayerCreationHint aHint) ClientLayerManager::CreatePaintedLayerWithHint(PaintedLayerCreationHint aHint)
{ {
NS_ASSERTION(InConstruction(), "Only allowed in construction phase"); NS_ASSERTION(InConstruction(), "Only allowed in construction phase");
// The non-tiling ContentClient requires CrossProcessSemaphore which
// isn't implemented for OSX.
#ifdef XP_MACOSX
if (true) {
#else
if (gfxPrefs::LayersTilesEnabled()) { if (gfxPrefs::LayersTilesEnabled()) {
#endif
RefPtr<ClientTiledPaintedLayer> layer = new ClientTiledPaintedLayer(this, aHint); RefPtr<ClientTiledPaintedLayer> layer = new ClientTiledPaintedLayer(this, aHint);
CREATE_SHADOW(Painted); CREATE_SHADOW(Painted);
return layer.forget(); return layer.forget();