From 00b1ca84d330797c18b9608ba88ed6b47dad95e8 Mon Sep 17 00:00:00 2001 From: Ali Akhtarzada Date: Tue, 18 Feb 2014 08:59:34 -0500 Subject: [PATCH] Bug 972843 - Make Image::GetAsSourceSurface pure virtual. r=nical --- gfx/layers/ImageContainer.cpp | 7 ------- gfx/layers/ImageContainer.h | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/gfx/layers/ImageContainer.cpp b/gfx/layers/ImageContainer.cpp index 7a7991cde70..20957d279df 100644 --- a/gfx/layers/ImageContainer.cpp +++ b/gfx/layers/ImageContainer.cpp @@ -48,13 +48,6 @@ namespace layers { Atomic Image::sSerialCounter(0); -TemporaryRef -Image::GetAsSourceSurface() -{ - nsRefPtr surface = DeprecatedGetAsSurface(); - return gfxPlatform::GetPlatform()->GetSourceSurfaceForSurface(nullptr, surface); -} - already_AddRefed ImageFactory::CreateImage(ImageFormat aFormat, const gfx::IntSize &, diff --git a/gfx/layers/ImageContainer.h b/gfx/layers/ImageContainer.h index fbc0e908c28..b257c6523a0 100644 --- a/gfx/layers/ImageContainer.h +++ b/gfx/layers/ImageContainer.h @@ -213,7 +213,7 @@ public: void MarkSent() { mSent = true; } bool IsSentToCompositor() { return mSent; } - virtual TemporaryRef GetAsSourceSurface(); + virtual TemporaryRef GetAsSourceSurface() = 0; protected: Image(void* aImplData, ImageFormat aFormat) :