Bug 1319188 - Assume LAYERS_WR can handle OMTA. r=gfx?
MozReview-Commit-ID: 3BuXrJetVoA
--- 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 {