Bug 973976 - Remove redundant work in CopyableCanvasLayer. r=jrmuizel

This operator was already initialized to OP_SOURCE, so no need to do it again.
This commit is contained in:
Tor Arvid Lund 2014-03-17 10:49:04 -04:00
parent 7dd506f567
commit 5c70ac4603

View File

@ -286,13 +286,6 @@ CopyableCanvasLayer::PaintWithOpacity(gfx::DrawTarget* aTarget,
DrawOptions options = DrawOptions(aOpacity, CompositionOp::OP_SOURCE);
// If content opaque, then save off current operator and set to source.
// This ensures that alpha is not applied even if the source surface
// has an alpha channel
if (GetContentFlags() & CONTENT_OPAQUE) {
options.mCompositionOp = CompositionOp::OP_SOURCE;
}
if (aOperator != CompositionOp::OP_OVER) {
options.mCompositionOp = aOperator;
}