зеркало из https://github.com/mozilla/gecko-dev.git
Bug 603885, part 4: Use unsafe-shmem-backed gfxSharedImageSurface for IPC shadow layers. r=joe
This commit is contained in:
Родитель
7e89a7975d
Коммит
c493eae976
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче