Bug 1340076 - Force tiling to always be enabled on OSX. r=nical
authorMatt Woodrow <mwoodrow@mozilla.com>
Fri, 17 Feb 2017 15:30:17 +1300
changeset 374028 99f0792ae01e564e9b17a54b5010cb58eeb9b274
parent 374027 b75eb9cec112f63c687fc20d3a35f65020a8733f
child 374029 d4f1db56ebc0ffc6817b81b6ba80d7b98b718489
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1340076
milestone54.0a1
Bug 1340076 - Force tiling to always be enabled on OSX. r=nical
gfx/layers/client/ClientPaintedLayer.cpp
--- a/gfx/layers/client/ClientPaintedLayer.cpp
+++ b/gfx/layers/client/ClientPaintedLayer.cpp
@@ -144,17 +144,23 @@ ClientLayerManager::CreatePaintedLayer()
 {
   return CreatePaintedLayerWithHint(NONE);
 }
 
 already_AddRefed<PaintedLayer>
 ClientLayerManager::CreatePaintedLayerWithHint(PaintedLayerCreationHint aHint)
 {
   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()) {
+#endif
     RefPtr<ClientTiledPaintedLayer> layer = new ClientTiledPaintedLayer(this, aHint);
     CREATE_SHADOW(Painted);
     return layer.forget();
   } else {
     RefPtr<ClientPaintedLayer> layer = new ClientPaintedLayer(this, aHint);
     CREATE_SHADOW(Painted);
     return layer.forget();
   }