bug 1225649 use CreatePlanarYCbCrImage() now that CreateImage() is gone r=dvander

See 57c5d2b88d26 and 1274f88a8e35.
This commit is contained in:
Karl Tomlinson 2015-11-18 12:40:05 +13:00
parent 92c0bb21c8
commit eb0938a1d0

View File

@ -60,7 +60,7 @@ moz_gfx_memory_reset(MozGfxMemory *mem)
mem->image->Release();
ImageContainer* container = ((MozGfxMemoryAllocator*) mem->memory.allocator)->reader->GetImageContainer();
mem->image = reinterpret_cast<PlanarYCbCrImage*>(container->CreateImage(ImageFormat::PLANAR_YCBCR).take());
mem->image = container->CreatePlanarYCbCrImage().forget().take();
mem->data = mem->image->AllocateAndGetNewBuffer(mem->memory.size);
}