зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1131462 - Remove buggy GetAsSurface override. r=jrmuizel
This commit is contained in:
Родитель
44452c0526
Коммит
43073dd455
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче