Bug 1317637 - Use C++11's override and remove virtual where applicable in gfx/. r=jrmuizel

MozReview-Commit-ID: 2nzBWEAu2wt
This commit is contained in:
Andi-Bogdan Postelnicu
2016-11-15 11:16:29 +02:00
parent 48b3ef528b
commit 700be71ad9
7 changed files with 41 additions and 41 deletions

View File

@@ -31,24 +31,24 @@ public:
MOZ_COUNT_CTOR(BasicImageLayer);
}
protected:
virtual ~BasicImageLayer()
~BasicImageLayer() override
{
MOZ_COUNT_DTOR(BasicImageLayer);
}
public:
virtual void SetVisibleRegion(const LayerIntRegion& aRegion) override
void SetVisibleRegion(const LayerIntRegion& aRegion) override
{
NS_ASSERTION(BasicManager()->InConstruction(),
"Can only set properties in construction phase");
ImageLayer::SetVisibleRegion(aRegion);
}
virtual void Paint(DrawTarget* aDT,
const gfx::Point& aDeviceOffset,
Layer* aMaskLayer) override;
void Paint(DrawTarget* aDT,
const gfx::Point& aDeviceOffset,
Layer* aMaskLayer) override;
virtual already_AddRefed<SourceSurface> GetAsSourceSurface() override;
already_AddRefed<SourceSurface> GetAsSourceSurface() override;
protected:
BasicLayerManager* BasicManager()