Bug 1062492. Only use DIBTextureClient with cairo drawing. r=bas

We don't want DIBTextureClient unless we're going to be using cairo for
drawing.
This commit is contained in:
Jeff Muizelaar 2014-09-08 17:18:04 -04:00
parent 187d4058df
commit 046fb41321

View File

@ -291,7 +291,8 @@ TextureClient::CreateForDrawing(ISurfaceAllocator* aAllocator,
}
if (!texture && aFormat == SurfaceFormat::B8G8R8X8 &&
aAllocator->IsSameProcess()) {
aAllocator->IsSameProcess() &&
aMoz2DBackend == gfx::BackendType::CAIRO) {
texture = new DIBTextureClient(aFormat, aTextureFlags);
}