mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 553852: D2D backend should destroy image surfaces when done with them. r=jrmuizel
This commit is contained in:
parent
b7ebaf9f38
commit
b3ea7e8d58
@ -1498,6 +1498,7 @@ _cairo_d2d_release_source_image(void *abstract_surface,
|
||||
}
|
||||
cairo_d2d_surface_t *d2dsurf = static_cast<cairo_d2d_surface_t*>(abstract_surface);
|
||||
|
||||
cairo_surface_destroy(&image->base);
|
||||
ID3D10Texture2D *softTexture = (ID3D10Texture2D*)image_extra;
|
||||
|
||||
softTexture->Unmap(0);
|
||||
@ -1579,6 +1580,9 @@ _cairo_d2d_release_dest_image(void *abstract_surface,
|
||||
rect.left = rect.top = 0;
|
||||
rect.right = size.width;
|
||||
rect.bottom = size.height;
|
||||
|
||||
cairo_surface_destroy(&image->base);
|
||||
|
||||
softTexture->Unmap(0);
|
||||
D3D10Factory::Device()->CopyResource(d2dsurf->surface, softTexture);
|
||||
softTexture->Release();
|
||||
|
Loading…
Reference in New Issue
Block a user