Bug 1151644 - Don't disallow the basic compositor backend. r=jrmuizel, a=lmandel
authorNicolas Silva <nsilva@mozilla.com>
Thu, 16 Apr 2015 07:57:00 +0200
changeset 267196 d3e68384888781efc80b9e7e9b3203167120fd4f
parent 267195 d3912ffd1e5466ae7c9ecebb510bb4c5c77354b0
child 267197 472989ca7f7ffb38e8af882839a539ae0e2da87c
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, lmandel
bugs1151644
milestone39.0a2
Bug 1151644 - Don't disallow the basic compositor backend. r=jrmuizel, a=lmandel
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -1152,27 +1152,16 @@ void nsBaseWidget::CreateCompositor(int 
     ConfigureAPZCTreeManager();
   }
 
   TextureFactoryIdentifier textureFactoryIdentifier;
   PLayerTransactionChild* shadowManager = nullptr;
   nsTArray<LayersBackend> backendHints;
   GetPreferredCompositorBackends(backendHints);
 
-#if !defined(MOZ_X11) && !defined(XP_WIN)
-  if (!mRequireOffMainThreadCompositing &&
-      !Preferences::GetBool("layers.offmainthreadcomposition.force-basic", false)) {
-    for (size_t i = 0; i < backendHints.Length(); ++i) {
-      if (backendHints[i] == LayersBackend::LAYERS_BASIC) {
-        backendHints[i] = LayersBackend::LAYERS_NONE;
-      }
-    }
-  }
-#endif
-
   bool success = false;
   if (!backendHints.IsEmpty()) {
     shadowManager = mCompositorChild->SendPLayerTransactionConstructor(
       backendHints, 0, &textureFactoryIdentifier, &success);
   }
 
   if (success) {
     ShadowLayerForwarder* lf = lm->AsShadowForwarder();