mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 63e2a056311a (bug 1187464) for reftest failures
This commit is contained in:
parent
0d242cb807
commit
a05d5c2081
@ -131,7 +131,6 @@ enum class LogReason : int {
|
||||
GlyphAllocFailedCG,
|
||||
InvalidRect,
|
||||
CannotDraw3D, // 20
|
||||
IncompatibleBasicTexturedEffect,
|
||||
// End
|
||||
MustBeLessThanThis = 101,
|
||||
};
|
||||
|
@ -430,14 +430,14 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
|
||||
static_cast<TexturedEffect*>(aEffectChain.mPrimaryEffect.get());
|
||||
TextureSourceBasic* source = texturedEffect->mTexture->AsSourceBasic();
|
||||
|
||||
if (source && texturedEffect->mPremultiplied) {
|
||||
if (texturedEffect->mPremultiplied) {
|
||||
DrawSurfaceWithTextureCoords(dest, aRect,
|
||||
source->GetSurface(dest),
|
||||
texturedEffect->mTextureCoords,
|
||||
texturedEffect->mFilter,
|
||||
DrawOptions(aOpacity, blendMode),
|
||||
sourceMask, &maskTransform);
|
||||
} else if (source) {
|
||||
} else {
|
||||
RefPtr<DataSourceSurface> srcData = source->GetSurface(dest)->GetDataSurface();
|
||||
|
||||
// Yes, we re-create the premultiplied data every time.
|
||||
@ -450,10 +450,7 @@ BasicCompositor::DrawQuad(const gfx::Rect& aRect,
|
||||
texturedEffect->mFilter,
|
||||
DrawOptions(aOpacity, blendMode),
|
||||
sourceMask, &maskTransform);
|
||||
} else {
|
||||
gfxDevCrash(LogReason::IncompatibleBasicTexturedEffect) << "Bad for basic";
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case EffectTypes::YCBCR: {
|
||||
|
Loading…
Reference in New Issue
Block a user