Bug 1073252. Backout 1051636 for B2G only. a=bajaj
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 26 Sep 2014 13:16:42 -0400
changeset 225134 d9a94c7c72468b4f2934ad79dc156d96baf22b06
parent 225133 3e3c69b549b09a6a9f1e6885982db5baa7115fc3
child 225135 4559efcd6f609aab749860de56edda60bcde4b59
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbajaj
bugs1073252, 1051636
milestone34.0a2
Bug 1073252. Backout 1051636 for B2G only. a=bajaj
layout/generic/nsVideoFrame.cpp
--- a/layout/generic/nsVideoFrame.cpp
+++ b/layout/generic/nsVideoFrame.cpp
@@ -215,16 +215,19 @@ nsVideoFrame::BuildLayer(nsDisplayListBu
   if (!layer) {
     layer = aManager->CreateImageLayer();
     if (!layer)
       return nullptr;
   }
 
   layer->SetContainer(container);
   layer->SetFilter(nsLayoutUtils::GetGraphicsFilterForFrame(this));
+#ifdef MOZ_B2G
+  layer->SetContentFlags(Layer::CONTENT_OPAQUE);
+#endif
   // Set a transform on the layer to draw the video in the right place
   gfx::Matrix transform;
   gfxPoint p = r.TopLeft() + aContainerParameters.mOffset;
   transform.Translate(p.x, p.y);
   transform.Scale(r.Width()/frameSize.width, r.Height()/frameSize.height);
   layer->SetBaseTransform(gfx::Matrix4x4::From2D(transform));
   nsRefPtr<Layer> result = layer.forget();
   return result.forget();