Bug 1384756 - Don't support component alpha layers with OMTP. r=dvander
authorMason Chang <mchang@mozilla.com>
Mon, 31 Jul 2017 16:48:56 -0700
changeset 423264 cc58fc61250ca10983923c0a31a75b47f05bce6c
parent 423263 0d3bdb80960db712c8b7643927c504d5ec484b26
child 423265 70c553a3e2da8cc3c811f2f11b4bfcbe9dc7adf2
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1384756
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384756 - Don't support component alpha layers with OMTP. r=dvander
gfx/layers/client/ClientPaintedLayer.cpp
--- a/gfx/layers/client/ClientPaintedLayer.cpp
+++ b/gfx/layers/client/ClientPaintedLayer.cpp
@@ -65,16 +65,22 @@ ClientPaintedLayer::CanRecordLayer(Readb
   }
 
   // If we have mask layers, we have to render those first
   // In this case, don't record for now.
   if (GetMaskLayer()) {
     return false;
   }
 
+  // Component alpha layers aren't supported yet since we have to
+  // hold onto both the front/back buffer of a texture client.
+  if (GetSurfaceMode() == SurfaceMode::SURFACE_COMPONENT_ALPHA) {
+    return false;
+  }
+
   return GetAncestorMaskLayerCount() == 0;
 }
 
 void
 ClientPaintedLayer::UpdateContentClient(PaintState& aState)
 {
   Mutated();