Bug 966999 - Remove some deprecated GL textures code. r=vlad

This commit is contained in:
Nicolas Silva
2014-02-04 21:47:20 +01:00
parent 150c3981d1
commit 681031b346
6 changed files with 7 additions and 769 deletions

View File

@@ -139,33 +139,6 @@ StreamTextureClientOGL::IsAllocated() const
return mStream != 0;
}
DeprecatedTextureClientSharedOGL::DeprecatedTextureClientSharedOGL(CompositableForwarder* aForwarder,
const TextureInfo& aTextureInfo)
: DeprecatedTextureClient(aForwarder, aTextureInfo)
, mGL(nullptr)
{
}
void
DeprecatedTextureClientSharedOGL::ReleaseResources()
{
if (!IsSurfaceDescriptorValid(mDescriptor)) {
return;
}
MOZ_ASSERT(mDescriptor.type() == SurfaceDescriptor::TSharedTextureDescriptor);
mDescriptor = SurfaceDescriptor();
// It's important our handle gets released! SharedDeprecatedTextureHostOGL will take
// care of this for us though.
}
bool
DeprecatedTextureClientSharedOGL::EnsureAllocated(gfx::IntSize aSize,
gfxContentType aContentType)
{
mSize = aSize;
return true;
}
} // namespace
} // namespace