зеркало из https://github.com/mozilla/gecko-dev.git
Bug 972843 - Make Image::GetAsSourceSurface pure virtual. r=nical
This commit is contained in:
Родитель
70b18ccce8
Коммит
f31bf7d111
|
@ -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 &,
|
||||
|
|
|
@ -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) :
|
||||
|
|
Загрузка…
Ссылка в новой задаче