mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1131462 - Remove buggy GetAsSurface override. r=jrmuizel
This commit is contained in:
parent
833aa080c8
commit
d6f7422100
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user