зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1340076 - Force tiling to always be enabled on OSX. r=nical
This commit is contained in:
Родитель
a1529f8ac9
Коммит
535aad2d0d
|
@ -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();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче