Bug 603885, part 4: Use unsafe-shmem-backed gfxSharedImageSurface for IPC shadow layers. r=joe

This commit is contained in:
Chris Jones 2010-11-05 02:17:07 -05:00
Родитель 7e89a7975d
Коммит c493eae976
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -420,8 +420,8 @@ ShadowLayerForwarder::AllocDoubleBuffer(const gfxIntSize& aSize,
nsRefPtr<gfxSharedImageSurface> front = new gfxSharedImageSurface();
nsRefPtr<gfxSharedImageSurface> back = new gfxSharedImageSurface();
if (!front->Init(mShadowManager, aSize, format, shmemType) ||
!back->Init(mShadowManager, aSize, format, shmemType))
if (!front->InitUnsafe(mShadowManager, aSize, format, shmemType) ||
!back->InitUnsafe(mShadowManager, aSize, format, shmemType))
return PR_FALSE;
*aFrontBuffer = NULL; *aBackBuffer = NULL;