Bug 972843 - Make Image::GetAsSourceSurface pure virtual. r=nical

This commit is contained in:
Ali Akhtarzada 2014-02-18 08:59:34 -05:00
parent a780929d11
commit 00b1ca84d3
2 changed files with 1 additions and 8 deletions

View File

@ -48,13 +48,6 @@ namespace layers {
Atomic<int32_t> Image::sSerialCounter(0);
TemporaryRef<gfx::SourceSurface>
Image::GetAsSourceSurface()
{
nsRefPtr<gfxASurface> surface = DeprecatedGetAsSurface();
return gfxPlatform::GetPlatform()->GetSourceSurfaceForSurface(nullptr, surface);
}
already_AddRefed<Image>
ImageFactory::CreateImage(ImageFormat aFormat,
const gfx::IntSize &,

View File

@ -213,7 +213,7 @@ public:
void MarkSent() { mSent = true; }
bool IsSentToCompositor() { return mSent; }
virtual TemporaryRef<gfx::SourceSurface> GetAsSourceSurface();
virtual TemporaryRef<gfx::SourceSurface> GetAsSourceSurface() = 0;
protected:
Image(void* aImplData, ImageFormat aFormat) :