Bug 1319188 - Assume LAYERS_WR can handle OMTA. r=gfx?
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 10 Dec 2016 04:30:50 -0500
changeset 459875 ab736a6ae87efdcfa94fd85b65e685b55270fe45
parent 459874 1399cee329f2b4e6dc18f671e76134fc62bc8379
child 459876 89bd46bf1d0e5189301a2f011bad8a0c21e9ea23
push id41343
push userkgupta@mozilla.com
push dateThu, 12 Jan 2017 20:13:44 +0000
reviewersgfx
bugs1319188
milestone53.0a1
Bug 1319188 - Assume LAYERS_WR can handle OMTA. r=gfx? MozReview-Commit-ID: 3BuXrJetVoA
layout/painting/nsDisplayList.cpp
--- a/layout/painting/nsDisplayList.cpp
+++ b/layout/painting/nsDisplayList.cpp
@@ -704,18 +704,19 @@ nsDisplayListBuilder::AddAnimationsAndTr
   // UpdateOpacityLayer/UpdateTransformLayer hints.
   MOZ_ASSERT(!aBuilder == !aItem,
              "should only be called in two configurations, with both "
              "aBuilder and aItem, or with neither");
   MOZ_ASSERT(!aItem || aFrame == aItem->Frame(), "frame mismatch");
 
   // Only send animations to a layer that is actually using
   // off-main-thread compositing.
-  if (aLayer->Manager()->GetBackendType() !=
-        layers::LayersBackend::LAYERS_CLIENT) {
+  LayersBackend backend = aLayer->Manager()->GetBackendType();
+  if (!(backend == layers::LayersBackend::LAYERS_CLIENT ||
+        backend == layers::LayersBackend::LAYERS_WR)) {
     return;
   }
 
   bool pending = !aBuilder;
 
   if (pending) {
     aLayer->ClearAnimationsForNextTransaction();
   } else {