mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 994924 - Fix broken logic in nsWindow for DrawTarget creation when using Skia r=jrmuizel
This commit is contained in:
parent
00dca54704
commit
6d68487619
@ -2138,7 +2138,7 @@ nsWindow::OnExposeEvent(cairo_t *cr)
|
||||
CreateDrawTargetForSurface(surf, intSize));
|
||||
} else if (gfxPlatform::GetPlatform()->
|
||||
SupportsAzureContentForType(BackendType::SKIA) &&
|
||||
surf->GetType() != gfxSurfaceType::Image) {
|
||||
surf->GetType() == gfxSurfaceType::Image) {
|
||||
gfxImageSurface* imgSurf = static_cast<gfxImageSurface*>(surf);
|
||||
SurfaceFormat format = ImageFormatToSurfaceFormat(imgSurf->Format());
|
||||
IntSize intSize(surf->GetSize().width, surf->GetSize().height);
|
||||
|
Loading…
Reference in New Issue
Block a user