mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset e0f69ad55edf (bug 962288) under suspicion of leaking on a CLOSED TREE
This commit is contained in:
parent
ce9c8c5e75
commit
8dc107fef4
@ -213,14 +213,14 @@ ImageLayerD3D10::RenderLayer()
|
||||
|
||||
ID3D10EffectTechnique *technique;
|
||||
nsRefPtr<IDXGIKeyedMutex> keyedMutex;
|
||||
nsRefPtr<gfxASurface> surf = image->DeprecatedGetAsSurface();
|
||||
|
||||
if (image->GetFormat() == ImageFormat::CAIRO_SURFACE ||
|
||||
image->GetFormat() == ImageFormat::REMOTE_IMAGE_BITMAP ||
|
||||
image->GetFormat() == ImageFormat::REMOTE_IMAGE_DXGI_TEXTURE ||
|
||||
image->GetFormat() == ImageFormat::D3D9_RGB32_TEXTURE) {
|
||||
NS_ASSERTION(image->GetFormat() != ImageFormat::CAIRO_SURFACE ||
|
||||
!static_cast<CairoImage*>(image)->DeprecatedGetAsSurface().get() ||
|
||||
static_cast<CairoImage*>(image)->DeprecatedGetAsSurface().get()->GetContentType() != GFX_CONTENT_ALPHA,
|
||||
!surf || surf->GetContentType() != GFX_CONTENT_ALPHA,
|
||||
"Image layer has alpha image");
|
||||
bool hasAlpha = false;
|
||||
|
||||
|
@ -414,9 +414,9 @@ ImageLayerD3D9::RenderLayer()
|
||||
image->GetFormat() == REMOTE_IMAGE_BITMAP ||
|
||||
image->GetFormat() == D3D9_RGB32_TEXTURE)
|
||||
{
|
||||
nsRefPtr<gfxASurface> surf = image->DeprecatedGetAsSurface();
|
||||
NS_ASSERTION(image->GetFormat() != CAIRO_SURFACE ||
|
||||
!static_cast<CairoImage*>(image)->DeprecatedGetAsSurface().get() ||
|
||||
static_cast<CairoImage*>(image)->DeprecatedGetAsSurface().get()->GetContentType() != GFX_CONTENT_ALPHA,
|
||||
!surf || surf->GetContentType() != GFX_CONTENT_ALPHA,
|
||||
"Image layer has alpha image");
|
||||
|
||||
bool hasAlpha = false;
|
||||
|
Loading…
Reference in New Issue
Block a user