Bug 966999 - Remove some deprecated GL textures code. r=vlad
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user