mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1132626 - Indicate component alpha on layer borders of tiled layers + tiles. r=bgirard
This commit is contained in:
parent
eeda945a67
commit
2d938ea149
@ -532,7 +532,11 @@ TiledContentHost::RenderTile(const TileHost& aTile,
|
||||
textureRect.height / aTextureBounds.height);
|
||||
mCompositor->DrawQuad(graphicsRect, aClipRect, aEffectChain, aOpacity, aTransform);
|
||||
}
|
||||
mCompositor->DrawDiagnostics(DiagnosticFlags::CONTENT | DiagnosticFlags::TILE,
|
||||
DiagnosticFlags flags = DiagnosticFlags::CONTENT | DiagnosticFlags::TILE;
|
||||
if (aTile.mTextureHostOnWhite) {
|
||||
flags |= DiagnosticFlags::COMPONENT_ALPHA;
|
||||
}
|
||||
mCompositor->DrawDiagnostics(flags,
|
||||
aScreenRegion, aClipRect, aTransform, mFlashCounter);
|
||||
}
|
||||
|
||||
@ -579,6 +583,8 @@ TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
||||
aTransform.PreScale(1/(resolution * layerScale.width),
|
||||
1/(resolution * layerScale.height), 1);
|
||||
|
||||
DiagnosticFlags componentAlphaDiagnostic = DiagnosticFlags::NO_DIAGNOSTIC;
|
||||
|
||||
uint32_t rowCount = 0;
|
||||
uint32_t tileX = 0;
|
||||
nsIntRect visibleRect = aVisibleRegion.GetBounds();
|
||||
@ -615,6 +621,9 @@ TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
||||
RenderTile(tileTexture, aBackgroundColor, aEffectChain, aOpacity, aTransform,
|
||||
aFilter, aClipRect, tileDrawRegion, tileOffset,
|
||||
nsIntSize(tileSize.width, tileSize.height));
|
||||
if (tileTexture.mTextureHostOnWhite) {
|
||||
componentAlphaDiagnostic = DiagnosticFlags::COMPONENT_ALPHA;
|
||||
}
|
||||
}
|
||||
}
|
||||
tileY++;
|
||||
@ -625,7 +634,7 @@ TiledContentHost::RenderLayerBuffer(TiledLayerBufferComposite& aLayerBuffer,
|
||||
}
|
||||
gfx::Rect rect(visibleRect.x, visibleRect.y,
|
||||
visibleRect.width, visibleRect.height);
|
||||
GetCompositor()->DrawDiagnostics(DiagnosticFlags::CONTENT,
|
||||
GetCompositor()->DrawDiagnostics(DiagnosticFlags::CONTENT | componentAlphaDiagnostic,
|
||||
rect, aClipRect, aTransform, mFlashCounter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user