diff --git a/gfx/layers/client/ClientThebesLayer.cpp b/gfx/layers/client/ClientThebesLayer.cpp index a86854d081ff..da7b8cd04059 100644 --- a/gfx/layers/client/ClientThebesLayer.cpp +++ b/gfx/layers/client/ClientThebesLayer.cpp @@ -163,7 +163,7 @@ ClientLayerManager::CreateThebesLayerWithHint(ThebesLayerCreationHint aHint) #ifdef MOZ_B2G aHint == SCROLLABLE && #endif - gfxPlatform::GetPlatform()->UseTiling() && + gfxPrefs::LayersTilesEnabled() && (AsShadowForwarder()->GetCompositorBackendType() == LayersBackend::LAYERS_OPENGL || AsShadowForwarder()->GetCompositorBackendType() == LayersBackend::LAYERS_D3D9 || AsShadowForwarder()->GetCompositorBackendType() == LayersBackend::LAYERS_D3D11)) { diff --git a/gfx/thebes/gfxPlatform.h b/gfx/thebes/gfxPlatform.h index 0c99e709c706..968b76ce19e7 100644 --- a/gfx/thebes/gfxPlatform.h +++ b/gfx/thebes/gfxPlatform.h @@ -252,8 +252,6 @@ public: virtual bool UseAcceleratedSkiaCanvas(); virtual void InitializeSkiaCacheLimits(); - virtual bool UseTiling() { return gfxPrefs::LayersTilesEnabled(); } - void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) { aObj.DefineProperty("AzureCanvasBackend", GetBackendName(mPreferredCanvasBackend)); aObj.DefineProperty("AzureSkiaAccelerated", UseAcceleratedSkiaCanvas()); diff --git a/gfx/thebes/gfxPlatformMac.cpp b/gfx/thebes/gfxPlatformMac.cpp index 52241c046ec6..8aead2a4bb25 100644 --- a/gfx/thebes/gfxPlatformMac.cpp +++ b/gfx/thebes/gfxPlatformMac.cpp @@ -18,7 +18,6 @@ #include "mozilla/Preferences.h" #include "qcms.h" #include "gfx2DGlue.h" -#include "gfxPrefs.h" #include @@ -387,16 +386,6 @@ gfxPlatformMac::UseAcceleratedCanvas() return nsCocoaFeatures::OnLionOrLater() && Preferences::GetBool("gfx.canvas.azure.accelerated", false); } -bool -gfxPlatformMac::UseTiling() -{ - if (gfxPrefs::LayersTilesForceEnabled()) { - return true; - } - // Tiling seems to be slow on 10.6 so disable it until we figure it out - return nsCocoaFeatures::OnLionOrLater() && gfxPlatform::UseTiling(); -} - void gfxPlatformMac::GetPlatformCMSOutputProfile(void* &mem, size_t &size) { diff --git a/gfx/thebes/gfxPlatformMac.h b/gfx/thebes/gfxPlatformMac.h index dafb1da6c0e6..11c08e5d1837 100644 --- a/gfx/thebes/gfxPlatformMac.h +++ b/gfx/thebes/gfxPlatformMac.h @@ -61,8 +61,6 @@ public: bool UseAcceleratedCanvas(); - virtual bool UseTiling() MOZ_OVERRIDE; - // lower threshold on font anti-aliasing uint32_t GetAntiAliasingThreshold() { return mFontAntiAliasingThreshold; } diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index e5b699a1c324..a1f4e2c8037f 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -237,7 +237,6 @@ private: DECL_GFX_PREF(Live, "layers.effect.invert", LayersEffectInvert, bool, false); DECL_GFX_PREF(Once, "layers.enable-tiles", LayersTilesEnabled, bool, false); - DECL_GFX_PREF(Once, "layers.force-enable-tiles", LayersTilesForceEnabled, bool, false); DECL_GFX_PREF(Once, "layers.simple-tiles", LayersUseSimpleTiles, bool, false); DECL_GFX_PREF(Once, "layers.force-per-tile-drawing", PerTileDrawing, bool, false); DECL_GFX_PREF(Once, "layers.tiled-drawtarget.enabled", TiledDrawTargetEnabled, bool, false); diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 9c961effda26..7591e4131959 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -3829,8 +3829,6 @@ pref("layers.offmainthreadcomposition.enabled", true); #ifdef XP_MACOSX pref("layers.offmainthreadcomposition.enabled", true); -pref("layers.enable-tiles", true); -pref("layers.tiled-drawtarget.enabled", true); #endif // ANDROID covers android and b2g