Bug 1131462 - Remove buggy GetAsSurface override. r=jrmuizel

This commit is contained in:
Benoit Girard 2015-02-10 23:03:15 +08:00
parent 833aa080c8
commit d6f7422100
2 changed files with 0 additions and 16 deletions

View File

@ -883,20 +883,6 @@ BufferTextureClient::GetLockedData() const
return serializer.GetData();
}
TemporaryRef<gfx::DataSourceSurface>
BufferTextureClient::GetAsSurface()
{
ImageDataSerializer serializer(GetBuffer(), GetBufferSize());
MOZ_ASSERT(serializer.IsValid());
RefPtr<gfx::DataSourceSurface> wrappingSurf =
gfx::Factory::CreateWrappingDataSourceSurface(serializer.GetData(),
serializer.GetStride(),
serializer.GetSize(),
serializer.GetFormat());
return gfx::CreateDataSourceSurfaceByCloning(wrappingSurf);
}
////////////////////////////////////////////////////////////////////////
// SharedSurfaceTextureClient

View File

@ -601,8 +601,6 @@ public:
gfx::IntSize aCbCrSize,
StereoMode aStereoMode) MOZ_OVERRIDE;
virtual TemporaryRef<gfx::DataSourceSurface> GetAsSurface() MOZ_OVERRIDE;
virtual gfx::SurfaceFormat GetFormat() const MOZ_OVERRIDE { return mFormat; }
// XXX - Bug 908196 - Make Allocate(uint32_t) and GetBufferSize() protected.