Bug 952051 - Change the GetOperator call in FlushGroup to take into account the mix-blend-mode operator for the group. r=roc
Create a new GetEffectiveOperator function that also takes into acount the mix-blend-mode operator for basic layers. Replace logic that chooses between the effective mix blend mode and the operator returned by GetOperator, with calls to this function.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "BasicCanvasLayer.h"
|
||||
#include "basic/BasicLayers.h" // for BasicLayerManager
|
||||
#include "basic/BasicLayersImpl.h" // for GetEffectiveOperator
|
||||
#include "mozilla/mozalloc.h" // for operator new
|
||||
#include "nsAutoPtr.h" // for nsRefPtr
|
||||
#include "nsCOMPtr.h" // for already_AddRefed
|
||||
@@ -29,11 +30,10 @@ BasicCanvasLayer::Paint(DrawTarget* aTarget, SourceSurface* aMaskSurface)
|
||||
UpdateTarget();
|
||||
FireDidTransactionCallback();
|
||||
|
||||
CompositionOp mixBlendMode = GetEffectiveMixBlendMode();
|
||||
PaintWithOpacity(aTarget,
|
||||
GetEffectiveOpacity(),
|
||||
aMaskSurface,
|
||||
mixBlendMode != CompositionOp::OP_OVER ? mixBlendMode : GetOperator());
|
||||
GetEffectiveOperator(this));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user