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