Bug 1053563 - Use a static create function to replace InitWith for TextureClient. r=nical

This commit is contained in:
Ethan Lin
2015-04-29 19:34:00 +02:00
parent da7ee8e57b
commit c5cd30776e
12 changed files with 149 additions and 83 deletions

View File

@@ -59,16 +59,6 @@ GrallocTextureClientOGL::CreateSimilar(TextureFlags aFlags,
return tex;
}
void
GrallocTextureClientOGL::InitWith(MaybeMagicGrallocBufferHandle aHandle, gfx::IntSize aSize)
{
MOZ_ASSERT(!IsAllocated());
MOZ_ASSERT(IsValid());
mGrallocHandle = aHandle;
mGraphicBuffer = GetGraphicBufferFrom(aHandle);
mSize = aSize;
}
bool
GrallocTextureClientOGL::ToSurfaceDescriptor(SurfaceDescriptor& aOutDescriptor)
{