diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 18970e303672..fa4951a32a35 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -73,6 +73,7 @@ pref("mozilla.widget.force-24bpp", true); pref("mozilla.widget.use-buffer-pixmap", true); pref("mozilla.widget.disable-native-theme", true); pref("layout.reflow.synthMouseMove", false); +pref("layers.force-tiles", false); /* download manager (don't show the window or alert) */ pref("browser.download.useDownloadDir", true); diff --git a/gfx/layers/TiledLayerBuffer.h b/gfx/layers/TiledLayerBuffer.h index 11bc86d5a0b3..204c413c66ac 100644 --- a/gfx/layers/TiledLayerBuffer.h +++ b/gfx/layers/TiledLayerBuffer.h @@ -7,11 +7,6 @@ #define TILEDLAYERBUFFER_TILE_SIZE 256 -#ifdef MOZ_ANDROID_OMTC - // This needs to go away as we enabled tiled - // layers everywhere. - #define FORCE_BASICTILEDTHEBESLAYER -#endif // Debug defines //#define GFX_TILEDLAYER_DEBUG_OVERLAY //#define GFX_TILEDLAYER_PREF_WARNINGS diff --git a/gfx/layers/client/ClientThebesLayer.cpp b/gfx/layers/client/ClientThebesLayer.cpp index 89caa52a2118..b128d5676403 100644 --- a/gfx/layers/client/ClientThebesLayer.cpp +++ b/gfx/layers/client/ClientThebesLayer.cpp @@ -17,6 +17,7 @@ #include "mozilla/gfx/Rect.h" // for Rect, IntRect #include "mozilla/gfx/Types.h" // for Float, etc #include "mozilla/layers/LayersTypes.h" +#include "mozilla/Preferences.h" #include "nsAutoPtr.h" // for nsRefPtr #include "nsCOMPtr.h" // for already_AddRefed #include "nsISupportsImpl.h" // for Layer::AddRef, etc @@ -185,14 +186,12 @@ already_AddRefed ClientLayerManager::CreateThebesLayer() { NS_ASSERTION(InConstruction(), "Only allowed in construction phase"); -#ifdef FORCE_BASICTILEDTHEBESLAYER - if (GetCompositorBackendType() == LAYERS_OPENGL) { + if (Preferences::GetBool("layers.force-tiles") && GetCompositorBackendType() == LAYERS_OPENGL) { nsRefPtr layer = new ClientTiledThebesLayer(this); CREATE_SHADOW(Thebes); return layer.forget(); } else -#endif { nsRefPtr layer = new ClientThebesLayer(this); diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 76b216ecbba5..90e1b69f37fd 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -718,6 +718,8 @@ pref("memory.free_dirty_pages", true); pref("layout.imagevisibility.enabled", false); +pref("layers.force-tiles", true); + // Enable the dynamic toolbar pref("browser.chrome.dynamictoolbar", true);