Bug 1233069 - add override declarations to Windows graphics headers; r=Bas

This change silences a number of -Winconsistent-missing-override
warnings on clang-cl.
This commit is contained in:
Nathan Froyd 2015-12-16 10:41:21 -05:00
Родитель ce7e5fad6d
Коммит 4094e18ff5
8 изменённых файлов: 90 добавлений и 90 удалений

Просмотреть файл

@ -39,97 +39,97 @@ struct PrivateD3D10DataD2D
class DrawTargetD2D : public DrawTarget class DrawTargetD2D : public DrawTarget
{ {
public: public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(DrawTargetD2D) MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(DrawTargetD2D, override)
DrawTargetD2D(); DrawTargetD2D();
virtual ~DrawTargetD2D(); virtual ~DrawTargetD2D();
virtual DrawTargetType GetType() const override { return DrawTargetType::HARDWARE_RASTER; } virtual DrawTargetType GetType() const override { return DrawTargetType::HARDWARE_RASTER; }
virtual BackendType GetBackendType() const { return BackendType::DIRECT2D; } virtual BackendType GetBackendType() const override { return BackendType::DIRECT2D; }
virtual already_AddRefed<SourceSurface> Snapshot(); virtual already_AddRefed<SourceSurface> Snapshot() override;
virtual IntSize GetSize() { return mSize; } virtual IntSize GetSize() override { return mSize; }
virtual void Flush(); virtual void Flush() override;
virtual void DrawSurface(SourceSurface *aSurface, virtual void DrawSurface(SourceSurface *aSurface,
const Rect &aDest, const Rect &aDest,
const Rect &aSource, const Rect &aSource,
const DrawSurfaceOptions &aSurfOptions = DrawSurfaceOptions(), const DrawSurfaceOptions &aSurfOptions = DrawSurfaceOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void DrawFilter(FilterNode *aNode, virtual void DrawFilter(FilterNode *aNode,
const Rect &aSourceRect, const Rect &aSourceRect,
const Point &aDestPoint, const Point &aDestPoint,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void DrawSurfaceWithShadow(SourceSurface *aSurface, virtual void DrawSurfaceWithShadow(SourceSurface *aSurface,
const Point &aDest, const Point &aDest,
const Color &aColor, const Color &aColor,
const Point &aOffset, const Point &aOffset,
Float aSigma, Float aSigma,
CompositionOp aOperator); CompositionOp aOperator) override;
virtual void ClearRect(const Rect &aRect); virtual void ClearRect(const Rect &aRect) override;
virtual void MaskSurface(const Pattern &aSource, virtual void MaskSurface(const Pattern &aSource,
SourceSurface *aMask, SourceSurface *aMask,
Point aOffset, Point aOffset,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void CopySurface(SourceSurface *aSurface, virtual void CopySurface(SourceSurface *aSurface,
const IntRect &aSourceRect, const IntRect &aSourceRect,
const IntPoint &aDestination); const IntPoint &aDestination) override;
virtual void FillRect(const Rect &aRect, virtual void FillRect(const Rect &aRect,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void StrokeRect(const Rect &aRect, virtual void StrokeRect(const Rect &aRect,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void StrokeLine(const Point &aStart, virtual void StrokeLine(const Point &aStart,
const Point &aEnd, const Point &aEnd,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void Stroke(const Path *aPath, virtual void Stroke(const Path *aPath,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void Fill(const Path *aPath, virtual void Fill(const Path *aPath,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void FillGlyphs(ScaledFont *aFont, virtual void FillGlyphs(ScaledFont *aFont,
const GlyphBuffer &aBuffer, const GlyphBuffer &aBuffer,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions(), const DrawOptions &aOptions = DrawOptions(),
const GlyphRenderingOptions *aRenderingOptions = nullptr); const GlyphRenderingOptions *aRenderingOptions = nullptr) override;
virtual void Mask(const Pattern &aSource, virtual void Mask(const Pattern &aSource,
const Pattern &aMask, const Pattern &aMask,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void PushClip(const Path *aPath); virtual void PushClip(const Path *aPath) override;
virtual void PushClipRect(const Rect &aRect); virtual void PushClipRect(const Rect &aRect) override;
virtual void PopClip(); virtual void PopClip() override;
virtual already_AddRefed<SourceSurface> CreateSourceSurfaceFromData(unsigned char *aData, virtual already_AddRefed<SourceSurface> CreateSourceSurfaceFromData(unsigned char *aData,
const IntSize &aSize, const IntSize &aSize,
int32_t aStride, int32_t aStride,
SurfaceFormat aFormat) const; SurfaceFormat aFormat) const override;
virtual already_AddRefed<SourceSurface> OptimizeSourceSurface(SourceSurface *aSurface) const; virtual already_AddRefed<SourceSurface> OptimizeSourceSurface(SourceSurface *aSurface) const override;
virtual already_AddRefed<SourceSurface> virtual already_AddRefed<SourceSurface>
CreateSourceSurfaceFromNativeSurface(const NativeSurface &aSurface) const; CreateSourceSurfaceFromNativeSurface(const NativeSurface &aSurface) const override;
virtual already_AddRefed<DrawTarget> virtual already_AddRefed<DrawTarget>
CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const; CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const override;
virtual already_AddRefed<PathBuilder> CreatePathBuilder(FillRule aFillRule = FillRule::FILL_WINDING) const; virtual already_AddRefed<PathBuilder> CreatePathBuilder(FillRule aFillRule = FillRule::FILL_WINDING) const override;
virtual already_AddRefed<GradientStops> virtual already_AddRefed<GradientStops>
CreateGradientStops(GradientStop *aStops, CreateGradientStops(GradientStop *aStops,
uint32_t aNumStops, uint32_t aNumStops,
ExtendMode aExtendMode = ExtendMode::CLAMP) const; ExtendMode aExtendMode = ExtendMode::CLAMP) const override;
virtual already_AddRefed<FilterNode> CreateFilter(FilterType aType); virtual already_AddRefed<FilterNode> CreateFilter(FilterType aType) override;
virtual bool SupportsRegionClipping() const { return false; } virtual bool SupportsRegionClipping() const override { return false; }
virtual void *GetNativeSurface(NativeSurfaceType aType); virtual void *GetNativeSurface(NativeSurfaceType aType) override;
bool Init(const IntSize &aSize, SurfaceFormat aFormat); bool Init(const IntSize &aSize, SurfaceFormat aFormat);
bool Init(ID3D10Texture2D *aTexture, SurfaceFormat aFormat); bool Init(ID3D10Texture2D *aTexture, SurfaceFormat aFormat);

Просмотреть файл

@ -29,96 +29,96 @@ const int32_t kLayerCacheSize1 = 5;
class DrawTargetD2D1 : public DrawTarget class DrawTargetD2D1 : public DrawTarget
{ {
public: public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(DrawTargetD2D1) MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(DrawTargetD2D1, override)
DrawTargetD2D1(); DrawTargetD2D1();
virtual ~DrawTargetD2D1(); virtual ~DrawTargetD2D1();
virtual DrawTargetType GetType() const override { return DrawTargetType::HARDWARE_RASTER; } virtual DrawTargetType GetType() const override { return DrawTargetType::HARDWARE_RASTER; }
virtual BackendType GetBackendType() const { return BackendType::DIRECT2D1_1; } virtual BackendType GetBackendType() const override { return BackendType::DIRECT2D1_1; }
virtual already_AddRefed<SourceSurface> Snapshot(); virtual already_AddRefed<SourceSurface> Snapshot() override;
virtual IntSize GetSize() { return mSize; } virtual IntSize GetSize() override { return mSize; }
virtual void Flush(); virtual void Flush() override;
virtual void DrawSurface(SourceSurface *aSurface, virtual void DrawSurface(SourceSurface *aSurface,
const Rect &aDest, const Rect &aDest,
const Rect &aSource, const Rect &aSource,
const DrawSurfaceOptions &aSurfOptions, const DrawSurfaceOptions &aSurfOptions,
const DrawOptions &aOptions); const DrawOptions &aOptions) override;
virtual void DrawFilter(FilterNode *aNode, virtual void DrawFilter(FilterNode *aNode,
const Rect &aSourceRect, const Rect &aSourceRect,
const Point &aDestPoint, const Point &aDestPoint,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void DrawSurfaceWithShadow(SourceSurface *aSurface, virtual void DrawSurfaceWithShadow(SourceSurface *aSurface,
const Point &aDest, const Point &aDest,
const Color &aColor, const Color &aColor,
const Point &aOffset, const Point &aOffset,
Float aSigma, Float aSigma,
CompositionOp aOperator); CompositionOp aOperator) override;
virtual void ClearRect(const Rect &aRect); virtual void ClearRect(const Rect &aRect) override;
virtual void MaskSurface(const Pattern &aSource, virtual void MaskSurface(const Pattern &aSource,
SourceSurface *aMask, SourceSurface *aMask,
Point aOffset, Point aOffset,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void CopySurface(SourceSurface *aSurface, virtual void CopySurface(SourceSurface *aSurface,
const IntRect &aSourceRect, const IntRect &aSourceRect,
const IntPoint &aDestination); const IntPoint &aDestination) override;
virtual void FillRect(const Rect &aRect, virtual void FillRect(const Rect &aRect,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void StrokeRect(const Rect &aRect, virtual void StrokeRect(const Rect &aRect,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void StrokeLine(const Point &aStart, virtual void StrokeLine(const Point &aStart,
const Point &aEnd, const Point &aEnd,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void Stroke(const Path *aPath, virtual void Stroke(const Path *aPath,
const Pattern &aPattern, const Pattern &aPattern,
const StrokeOptions &aStrokeOptions = StrokeOptions(), const StrokeOptions &aStrokeOptions = StrokeOptions(),
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void Fill(const Path *aPath, virtual void Fill(const Path *aPath,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void FillGlyphs(ScaledFont *aFont, virtual void FillGlyphs(ScaledFont *aFont,
const GlyphBuffer &aBuffer, const GlyphBuffer &aBuffer,
const Pattern &aPattern, const Pattern &aPattern,
const DrawOptions &aOptions = DrawOptions(), const DrawOptions &aOptions = DrawOptions(),
const GlyphRenderingOptions *aRenderingOptions = nullptr); const GlyphRenderingOptions *aRenderingOptions = nullptr) override;
virtual void Mask(const Pattern &aSource, virtual void Mask(const Pattern &aSource,
const Pattern &aMask, const Pattern &aMask,
const DrawOptions &aOptions = DrawOptions()); const DrawOptions &aOptions = DrawOptions()) override;
virtual void PushClip(const Path *aPath); virtual void PushClip(const Path *aPath) override;
virtual void PushClipRect(const Rect &aRect); virtual void PushClipRect(const Rect &aRect) override;
virtual void PopClip(); virtual void PopClip() override;
virtual already_AddRefed<SourceSurface> CreateSourceSurfaceFromData(unsigned char *aData, virtual already_AddRefed<SourceSurface> CreateSourceSurfaceFromData(unsigned char *aData,
const IntSize &aSize, const IntSize &aSize,
int32_t aStride, int32_t aStride,
SurfaceFormat aFormat) const; SurfaceFormat aFormat) const override;
virtual already_AddRefed<SourceSurface> OptimizeSourceSurface(SourceSurface *aSurface) const; virtual already_AddRefed<SourceSurface> OptimizeSourceSurface(SourceSurface *aSurface) const override;
virtual already_AddRefed<SourceSurface> virtual already_AddRefed<SourceSurface>
CreateSourceSurfaceFromNativeSurface(const NativeSurface &aSurface) const { return nullptr; } CreateSourceSurfaceFromNativeSurface(const NativeSurface &aSurface) const override { return nullptr; }
virtual already_AddRefed<DrawTarget> virtual already_AddRefed<DrawTarget>
CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const; CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const override;
virtual already_AddRefed<PathBuilder> CreatePathBuilder(FillRule aFillRule = FillRule::FILL_WINDING) const; virtual already_AddRefed<PathBuilder> CreatePathBuilder(FillRule aFillRule = FillRule::FILL_WINDING) const override;
virtual already_AddRefed<GradientStops> virtual already_AddRefed<GradientStops>
CreateGradientStops(GradientStop *aStops, CreateGradientStops(GradientStop *aStops,
uint32_t aNumStops, uint32_t aNumStops,
ExtendMode aExtendMode = ExtendMode::CLAMP) const; ExtendMode aExtendMode = ExtendMode::CLAMP) const override;
virtual already_AddRefed<FilterNode> CreateFilter(FilterType aType); virtual already_AddRefed<FilterNode> CreateFilter(FilterType aType) override;
virtual bool SupportsRegionClipping() const { return false; } virtual bool SupportsRegionClipping() const override { return false; }
virtual void *GetNativeSurface(NativeSurfaceType aType) { return nullptr; } virtual void *GetNativeSurface(NativeSurfaceType aType) override { return nullptr; }
bool Init(const IntSize &aSize, SurfaceFormat aFormat); bool Init(const IntSize &aSize, SurfaceFormat aFormat);
bool Init(ID3D11Texture2D* aTexture, SurfaceFormat aFormat); bool Init(ID3D11Texture2D* aTexture, SurfaceFormat aFormat);

Просмотреть файл

@ -74,15 +74,15 @@ protected:
class FilterNodeConvolveD2D1 : public FilterNodeD2D1 class FilterNodeConvolveD2D1 : public FilterNodeD2D1
{ {
public: public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodeConvolveD2D1) MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodeConvolveD2D1, override)
FilterNodeConvolveD2D1(ID2D1DeviceContext *aDC); FilterNodeConvolveD2D1(ID2D1DeviceContext *aDC);
virtual void SetInput(uint32_t aIndex, FilterNode *aFilter); virtual void SetInput(uint32_t aIndex, FilterNode *aFilter) override;
virtual void SetAttribute(uint32_t aIndex, uint32_t aValue); virtual void SetAttribute(uint32_t aIndex, uint32_t aValue) override;
virtual void SetAttribute(uint32_t aIndex, const IntSize &aValue); virtual void SetAttribute(uint32_t aIndex, const IntSize &aValue) override;
virtual void SetAttribute(uint32_t aIndex, const IntPoint &aValue); virtual void SetAttribute(uint32_t aIndex, const IntPoint &aValue) override;
virtual void SetAttribute(uint32_t aIndex, const IntRect &aValue); virtual void SetAttribute(uint32_t aIndex, const IntRect &aValue) override;
virtual ID2D1Effect* InputEffect() override; virtual ID2D1Effect* InputEffect() override;
@ -102,7 +102,7 @@ private:
class FilterNodeExtendInputAdapterD2D1 : public FilterNodeD2D1 class FilterNodeExtendInputAdapterD2D1 : public FilterNodeD2D1
{ {
public: public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodeExtendInputAdapterD2D1) MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodeExtendInputAdapterD2D1, override)
FilterNodeExtendInputAdapterD2D1(ID2D1DeviceContext *aDC, FilterNodeD2D1 *aFilterNode, FilterType aType); FilterNodeExtendInputAdapterD2D1(ID2D1DeviceContext *aDC, FilterNodeD2D1 *aFilterNode, FilterType aType);
virtual ID2D1Effect* InputEffect() override { return mExtendInputEffect.get(); } virtual ID2D1Effect* InputEffect() override { return mExtendInputEffect.get(); }
@ -116,7 +116,7 @@ private:
class FilterNodePremultiplyAdapterD2D1 : public FilterNodeD2D1 class FilterNodePremultiplyAdapterD2D1 : public FilterNodeD2D1
{ {
public: public:
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodePremultiplyAdapterD2D1) MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(FilterNodePremultiplyAdapterD2D1, override)
FilterNodePremultiplyAdapterD2D1(ID2D1DeviceContext *aDC, FilterNodeD2D1 *aFilterNode, FilterType aType); FilterNodePremultiplyAdapterD2D1(ID2D1DeviceContext *aDC, FilterNodeD2D1 *aFilterNode, FilterType aType);
virtual ID2D1Effect* InputEffect() override { return mPrePremultiplyEffect.get(); } virtual ID2D1Effect* InputEffect() override { return mPrePremultiplyEffect.get(); }

Просмотреть файл

@ -185,11 +185,11 @@ public:
virtual gfx::IntSize GetSize() const override { return mSize; } virtual gfx::IntSize GetSize() const override { return mSize; }
virtual gfx::SurfaceFormat GetFormat() const { return gfx::SurfaceFormat::YUV; } virtual gfx::SurfaceFormat GetFormat() const override { return gfx::SurfaceFormat::YUV; }
virtual bool SupportsMoz2D() const { return false; } virtual bool SupportsMoz2D() const override { return false; }
virtual already_AddRefed<gfx::DrawTarget> BorrowDrawTarget() { return nullptr; } virtual already_AddRefed<gfx::DrawTarget> BorrowDrawTarget() override { return nullptr; }
// This TextureData should not be used in a context where we use CreateSimilar // This TextureData should not be used in a context where we use CreateSimilar
// (ex. component alpha) because the underlying texture is always created by // (ex. component alpha) because the underlying texture is always created by

Просмотреть файл

@ -44,7 +44,7 @@ public:
const CompositingRenderTarget *aSource, const CompositingRenderTarget *aSource,
const gfx::IntPoint &aSourcePoint) override; const gfx::IntPoint &aSourcePoint) override;
virtual void SetRenderTarget(CompositingRenderTarget *aSurface); virtual void SetRenderTarget(CompositingRenderTarget *aSurface) override;
virtual CompositingRenderTarget* GetCurrentRenderTarget() const override virtual CompositingRenderTarget* GetCurrentRenderTarget() const override
{ {
return mCurrentRT; return mCurrentRT;

Просмотреть файл

@ -206,7 +206,7 @@ public:
static D3D9TextureData* static D3D9TextureData*
Create(gfx::IntSize aSize, gfx::SurfaceFormat aFormat, TextureAllocationFlags aFlags); Create(gfx::IntSize aSize, gfx::SurfaceFormat aFormat, TextureAllocationFlags aFlags);
virtual void Deallocate(ISurfaceAllocator* aAllocator) {} virtual void Deallocate(ISurfaceAllocator* aAllocator) override {}
protected: protected:
D3D9TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat, D3D9TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
@ -234,7 +234,7 @@ public:
~DXGID3D9TextureData(); ~DXGID3D9TextureData();
virtual gfx::IntSize GetSize() const { return gfx::IntSize(mDesc.Width, mDesc.Height); } virtual gfx::IntSize GetSize() const override { return gfx::IntSize(mDesc.Width, mDesc.Height); }
virtual gfx::SurfaceFormat GetFormat() const override { return mFormat; } virtual gfx::SurfaceFormat GetFormat() const override { return mFormat; }
@ -246,7 +246,7 @@ public:
virtual bool HasInternalBuffer() const override { return false; } virtual bool HasInternalBuffer() const override { return false; }
virtual void Deallocate(ISurfaceAllocator* aAllocator) {} virtual void Deallocate(ISurfaceAllocator* aAllocator) override {}
IDirect3DDevice9* GetD3D9Device() { return mDevice; } IDirect3DDevice9* GetD3D9Device() { return mDevice; }
IDirect3DTexture9* GetD3D9Texture() { return mTexture; } IDirect3DTexture9* GetD3D9Texture() { return mTexture; }

Просмотреть файл

@ -63,11 +63,11 @@ public:
GetGlyphRenderingOptions(const TextRunDrawParams* aRunParams = nullptr) override; GetGlyphRenderingOptions(const TextRunDrawParams* aRunParams = nullptr) override;
virtual void AddSizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf, virtual void AddSizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf,
FontCacheSizes* aSizes) const; FontCacheSizes* aSizes) const override;
virtual void AddSizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf, virtual void AddSizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf,
FontCacheSizes* aSizes) const; FontCacheSizes* aSizes) const override;
virtual FontType GetType() const { return FONT_TYPE_DWRITE; } virtual FontType GetType() const override { return FONT_TYPE_DWRITE; }
virtual already_AddRefed<mozilla::gfx::ScaledFont> virtual already_AddRefed<mozilla::gfx::ScaledFont>
GetScaledFont(mozilla::gfx::DrawTarget *aTarget) override; GetScaledFont(mozilla::gfx::DrawTarget *aTarget) override;

Просмотреть файл

@ -114,14 +114,14 @@ public:
return (gfxWindowsPlatform*) gfxPlatform::GetPlatform(); return (gfxWindowsPlatform*) gfxPlatform::GetPlatform();
} }
virtual gfxPlatformFontList* CreatePlatformFontList(); virtual gfxPlatformFontList* CreatePlatformFontList() override;
virtual already_AddRefed<gfxASurface> virtual already_AddRefed<gfxASurface>
CreateOffscreenSurface(const IntSize& aSize, CreateOffscreenSurface(const IntSize& aSize,
gfxImageFormat aFormat) override; gfxImageFormat aFormat) override;
virtual already_AddRefed<mozilla::gfx::ScaledFont> virtual already_AddRefed<mozilla::gfx::ScaledFont>
GetScaledFontForFont(mozilla::gfx::DrawTarget* aTarget, gfxFont *aFont); GetScaledFontForFont(mozilla::gfx::DrawTarget* aTarget, gfxFont *aFont) override;
enum RenderMode { enum RenderMode {
/* Use GDI and windows surfaces */ /* Use GDI and windows surfaces */
@ -171,15 +171,15 @@ public:
nsresult GetFontList(nsIAtom *aLangGroup, nsresult GetFontList(nsIAtom *aLangGroup,
const nsACString& aGenericFamily, const nsACString& aGenericFamily,
nsTArray<nsString>& aListOfFonts); nsTArray<nsString>& aListOfFonts) override;
nsresult UpdateFontList(); nsresult UpdateFontList();
virtual void GetCommonFallbackFonts(uint32_t aCh, uint32_t aNextCh, virtual void GetCommonFallbackFonts(uint32_t aCh, uint32_t aNextCh,
int32_t aRunScript, int32_t aRunScript,
nsTArray<const char*>& aFontList); nsTArray<const char*>& aFontList) overide;
nsresult GetStandardFamilyName(const nsAString& aFontName, nsAString& aFamilyName); nsresult GetStandardFamilyName(const nsAString& aFontName, nsAString& aFamilyName) override;
gfxFontGroup* gfxFontGroup*
CreateFontGroup(const mozilla::FontFamilyList& aFontFamilyList, CreateFontGroup(const mozilla::FontFamilyList& aFontFamilyList,
@ -194,7 +194,7 @@ public:
virtual gfxFontEntry* LookupLocalFont(const nsAString& aFontName, virtual gfxFontEntry* LookupLocalFont(const nsAString& aFontName,
uint16_t aWeight, uint16_t aWeight,
int16_t aStretch, int16_t aStretch,
uint8_t aStyle); uint8_t aStyle) override;
/** /**
* Activate a platform font (needed to support @font-face src url() ) * Activate a platform font (needed to support @font-face src url() )
@ -204,16 +204,16 @@ public:
int16_t aStretch, int16_t aStretch,
uint8_t aStyle, uint8_t aStyle,
const uint8_t* aFontData, const uint8_t* aFontData,
uint32_t aLength); uint32_t aLength) override;
virtual bool CanUseHardwareVideoDecoding() override; virtual bool CanUseHardwareVideoDecoding() override;
/** /**
* Check whether format is supported on a platform or not (if unclear, returns true) * Check whether format is supported on a platform or not (if unclear, returns true)
*/ */
virtual bool IsFontFormatSupported(nsIURI *aFontURI, uint32_t aFormatFlags); virtual bool IsFontFormatSupported(nsIURI *aFontURI, uint32_t aFormatFlags) override;
virtual bool DidRenderingDeviceReset(DeviceResetReason* aResetReason = nullptr); virtual bool DidRenderingDeviceReset(DeviceResetReason* aResetReason = nullptr) override;
mozilla::gfx::BackendType GetContentBackendFor(mozilla::layers::LayersBackend aLayers) override; mozilla::gfx::BackendType GetContentBackendFor(mozilla::layers::LayersBackend aLayers) override;
@ -227,7 +227,7 @@ public:
// returns ClearType tuning information for each display // returns ClearType tuning information for each display
static void GetCleartypeParams(nsTArray<ClearTypeParameterInfo>& aParams); static void GetCleartypeParams(nsTArray<ClearTypeParameterInfo>& aParams);
virtual void FontsPrefsChanged(const char *aPref); virtual void FontsPrefsChanged(const char *aPref) override;
void SetupClearTypeParams(); void SetupClearTypeParams();
@ -304,8 +304,8 @@ protected:
bool AccelerateLayersByDefault() override { bool AccelerateLayersByDefault() override {
return true; return true;
} }
void GetAcceleratedCompositorBackends(nsTArray<mozilla::layers::LayersBackend>& aBackends); void GetAcceleratedCompositorBackends(nsTArray<mozilla::layers::LayersBackend>& aBackends) override;
virtual void GetPlatformCMSOutputProfile(void* &mem, size_t &size); virtual void GetPlatformCMSOutputProfile(void* &mem, size_t &size) override;
void SetDeviceInitData(mozilla::gfx::DeviceInitData& aData) override; void SetDeviceInitData(mozilla::gfx::DeviceInitData& aData) override;
protected: protected: