Bug 647462 - Video layer should not be ARGB by default; r=chris.double
authorOleg Romashin <romaxa@gmail.com>
Tue, 12 Apr 2011 15:39:50 -0400
changeset 68065 ad9329ec0ee6038d84c04532791eaa9e171e435e
parent 68064 3b7b6b0bd9efc50fc4309bd638fd09987fec4342
child 68066 7511736d309b7afe947ad7b08b65d77df5a5b425
push idunknown
push userunknown
push dateunknown
reviewerschris
bugs647462
milestone2.2a1pre
Bug 647462 - Video layer should not be ARGB by default; r=chris.double
layout/generic/nsVideoFrame.cpp
--- a/layout/generic/nsVideoFrame.cpp
+++ b/layout/generic/nsVideoFrame.cpp
@@ -271,16 +271,17 @@ nsVideoFrame::BuildLayer(nsDisplayListBu
   if (!layer) {
     layer = aManager->CreateImageLayer();
     if (!layer)
       return nsnull;
   }
 
   layer->SetContainer(container);
   layer->SetFilter(nsLayoutUtils::GetGraphicsFilterForFrame(this));
+  layer->SetContentFlags(Layer::CONTENT_OPAQUE);
   // Set a transform on the layer to draw the video in the right place
   gfxMatrix transform;
   transform.Translate(r.pos);
   transform.Scale(r.Width()/frameSize.width, r.Height()/frameSize.height);
   layer->SetTransform(gfx3DMatrix::From2D(transform));
   layer->SetVisibleRegion(nsIntRect(0, 0, videoSize.width, videoSize.height));
   nsRefPtr<Layer> result = layer.forget();
   return result.forget();