mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990752 - Make ImageLayerD3D9/ImageLayerD3D10::Render() use mSourceSurface instead of mDeprecatedSurface (Moz2D migration). r=mattwoodrow
This commit is contained in:
parent
3976b3243c
commit
0f938e4df0
@ -219,8 +219,8 @@ ImageLayerD3D10::RenderLayer()
|
||||
image->GetFormat() == ImageFormat::REMOTE_IMAGE_DXGI_TEXTURE ||
|
||||
image->GetFormat() == ImageFormat::D3D9_RGB32_TEXTURE) {
|
||||
NS_ASSERTION(image->GetFormat() != ImageFormat::CAIRO_SURFACE ||
|
||||
!static_cast<CairoImage*>(image)->mDeprecatedSurface ||
|
||||
static_cast<CairoImage*>(image)->mDeprecatedSurface->GetContentType() != gfxContentType::ALPHA,
|
||||
!static_cast<CairoImage*>(image)->mSourceSurface ||
|
||||
static_cast<CairoImage*>(image)->mSourceSurface->GetFormat() != SurfaceFormat::A8,
|
||||
"Image layer has alpha image");
|
||||
bool hasAlpha = false;
|
||||
|
||||
|
@ -415,8 +415,8 @@ ImageLayerD3D9::RenderLayer()
|
||||
image->GetFormat() == ImageFormat::D3D9_RGB32_TEXTURE)
|
||||
{
|
||||
NS_ASSERTION(image->GetFormat() != ImageFormat::CAIRO_SURFACE ||
|
||||
!static_cast<CairoImage*>(image)->mDeprecatedSurface ||
|
||||
static_cast<CairoImage*>(image)->mDeprecatedSurface->GetContentType() != gfxContentType::ALPHA,
|
||||
!static_cast<CairoImage*>(image)->mSourceSurface ||
|
||||
static_cast<CairoImage*>(image)->mSourceSurface->GetFormat() != SurfaceFormat::A8,
|
||||
"Image layer has alpha image");
|
||||
|
||||
bool hasAlpha = false;
|
||||
|
Loading…
Reference in New Issue
Block a user