mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 972843 - Make Image::GetAsSourceSurface pure virtual. r=nical
This commit is contained in:
parent
a780929d11
commit
00b1ca84d3
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user