Mark overridden destructors with 'override' and remove 'virtual'
This silences a new warning in clang 5.0
Change-Id: Ieb5b75a6ffed60107c3fd16075d2ecfd515b55e8
Reviewed-on: https://skia-review.googlesource.com/10006
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
diff --git a/src/gpu/GrRectanizer_pow2.h b/src/gpu/GrRectanizer_pow2.h
index 424d22e..b8cc0a1 100644
--- a/src/gpu/GrRectanizer_pow2.h
+++ b/src/gpu/GrRectanizer_pow2.h
@@ -24,7 +24,7 @@
this->reset();
}
- virtual ~GrRectanizerPow2() { }
+ ~GrRectanizerPow2() override {}
void reset() override {
fNextStripY = 0;
diff --git a/src/gpu/effects/GrBezierEffect.h b/src/gpu/effects/GrBezierEffect.h
index f908551..3a130ec 100644
--- a/src/gpu/effects/GrBezierEffect.h
+++ b/src/gpu/effects/GrBezierEffect.h
@@ -89,7 +89,7 @@
}
}
- virtual ~GrConicEffect();
+ ~GrConicEffect() override;
const char* name() const override { return "Conic"; }
@@ -171,7 +171,7 @@
}
}
- virtual ~GrQuadEffect();
+ ~GrQuadEffect() override;
const char* name() const override { return "Quad"; }
@@ -248,7 +248,7 @@
}
}
- virtual ~GrCubicEffect();
+ ~GrCubicEffect() override;
const char* name() const override { return "Cubic"; }
diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h
index ed22ba1..e24422f 100644
--- a/src/gpu/effects/GrBicubicEffect.h
+++ b/src/gpu/effects/GrBicubicEffect.h
@@ -20,7 +20,7 @@
kFilterTexelPad = 2, // Given a src rect in texels to be filtered, this number of
// surrounding texels are needed by the kernel in x and y.
};
- virtual ~GrBicubicEffect();
+ ~GrBicubicEffect() override;
const char* name() const override { return "Bicubic"; }
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.h b/src/gpu/effects/GrBitmapTextGeoProc.h
index 2221e8a..aa9afc2 100644
--- a/src/gpu/effects/GrBitmapTextGeoProc.h
+++ b/src/gpu/effects/GrBitmapTextGeoProc.h
@@ -30,7 +30,7 @@
localMatrix, usesLocalCoords));
}
- virtual ~GrBitmapTextGeoProc() {}
+ ~GrBitmapTextGeoProc() override {}
const char* name() const override { return "Texture"; }
diff --git a/src/gpu/effects/GrConvexPolyEffect.h b/src/gpu/effects/GrConvexPolyEffect.h
index 89a8124..34f8b22 100644
--- a/src/gpu/effects/GrConvexPolyEffect.h
+++ b/src/gpu/effects/GrConvexPolyEffect.h
@@ -57,7 +57,7 @@
*/
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRect&);
- virtual ~GrConvexPolyEffect();
+ ~GrConvexPolyEffect() override;
const char* name() const override { return "ConvexPoly"; }
diff --git a/src/gpu/effects/GrDistanceFieldGeoProc.h b/src/gpu/effects/GrDistanceFieldGeoProc.h
index cf5d5f9..1384d2f 100644
--- a/src/gpu/effects/GrDistanceFieldGeoProc.h
+++ b/src/gpu/effects/GrDistanceFieldGeoProc.h
@@ -70,7 +70,7 @@
}
#endif
- virtual ~GrDistanceFieldA8TextGeoProc() {}
+ ~GrDistanceFieldA8TextGeoProc() override {}
const char* name() const override { return "DistanceFieldA8Text"; }
diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp
index adae12c..864a5d2 100644
--- a/src/gpu/effects/GrDitherEffect.cpp
+++ b/src/gpu/effects/GrDitherEffect.cpp
@@ -20,7 +20,7 @@
return sk_sp<GrFragmentProcessor>(new DitherEffect);
}
- virtual ~DitherEffect() {}
+ ~DitherEffect() override {}
const char* name() const override { return "Dither"; }
diff --git a/src/gpu/effects/GrOvalEffect.cpp b/src/gpu/effects/GrOvalEffect.cpp
index 62b1c52..a8b0c84 100644
--- a/src/gpu/effects/GrOvalEffect.cpp
+++ b/src/gpu/effects/GrOvalEffect.cpp
@@ -23,7 +23,7 @@
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkPoint& center,
SkScalar radius);
- virtual ~CircleEffect() {}
+ ~CircleEffect() override {}
const char* name() const override { return "Circle"; }
@@ -185,7 +185,7 @@
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkPoint& center,
SkScalar rx, SkScalar ry);
- virtual ~EllipseEffect() {}
+ ~EllipseEffect() override {}
const char* name() const override { return "Ellipse"; }
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
index f984355..3dc5325 100644
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
@@ -589,7 +589,7 @@
public:
GLPDLCDXferProcessor(const GrProcessor&) : fLastAlpha(SK_MaxU32) {}
- virtual ~GLPDLCDXferProcessor() {}
+ ~GLPDLCDXferProcessor() override {}
static void GenKey(const GrProcessor& processor, const GrShaderCaps& caps,
GrProcessorKeyBuilder* b) {}
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp
index 7253de8..1b4772d 100644
--- a/src/gpu/effects/GrRRectEffect.cpp
+++ b/src/gpu/effects/GrRRectEffect.cpp
@@ -48,7 +48,7 @@
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, uint32_t circularCornerFlags,
const SkRRect&);
- virtual ~CircularRRectEffect() {}
+ ~CircularRRectEffect() override {}
const char* name() const override { return "CircularRRect"; }
@@ -387,7 +387,7 @@
public:
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRRect&);
- virtual ~EllipticalRRectEffect() {}
+ ~EllipticalRRectEffect() override {}
const char* name() const override { return "EllipticalRRect"; }
diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h
index 69b8749..b3030bf 100644
--- a/src/gpu/effects/GrSimpleTextureEffect.h
+++ b/src/gpu/effects/GrSimpleTextureEffect.h
@@ -80,7 +80,7 @@
matrix, p));
}
- virtual ~GrSimpleTextureEffect() {}
+ ~GrSimpleTextureEffect() override {}
const char* name() const override { return "SimpleTexture"; }
diff --git a/src/gpu/gl/GrGLBuffer.h b/src/gpu/gl/GrGLBuffer.h
index 6a90d03..3400819 100644
--- a/src/gpu/gl/GrGLBuffer.h
+++ b/src/gpu/gl/GrGLBuffer.h
@@ -19,7 +19,7 @@
static GrGLBuffer* Create(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern,
const void* data = nullptr);
- ~GrGLBuffer() {
+ ~GrGLBuffer() override {
// either release or abandon should have been called by the owner of this object.
SkASSERT(0 == fBufferID);
}
diff --git a/src/gpu/gl/GrGLGpuCommandBuffer.h b/src/gpu/gl/GrGLGpuCommandBuffer.h
index 519272f..73deba3 100644
--- a/src/gpu/gl/GrGLGpuCommandBuffer.h
+++ b/src/gpu/gl/GrGLGpuCommandBuffer.h
@@ -24,7 +24,7 @@
public:
GrGLGpuCommandBuffer(GrGLGpu* gpu) : fGpu(gpu), fRenderTarget(nullptr) {}
- virtual ~GrGLGpuCommandBuffer() {}
+ ~GrGLGpuCommandBuffer() override {}
void end() override {}
diff --git a/src/gpu/gl/GrGLPathRendering.h b/src/gpu/gl/GrGLPathRendering.h
index d7a7dbf..8c3cd47 100644
--- a/src/gpu/gl/GrGLPathRendering.h
+++ b/src/gpu/gl/GrGLPathRendering.h
@@ -31,7 +31,7 @@
* Create a new GrGLPathRendering object from a given GrGLGpu.
*/
GrGLPathRendering(GrGLGpu* gpu);
- virtual ~GrGLPathRendering();
+ ~GrGLPathRendering() override;
// GrPathRendering implementations.
GrPath* createPath(const SkPath&, const GrStyle&) override;
diff --git a/src/gpu/ops/GrAAConvexPathRenderer.cpp b/src/gpu/ops/GrAAConvexPathRenderer.cpp
index ba2b00e..e316fec 100644
--- a/src/gpu/ops/GrAAConvexPathRenderer.cpp
+++ b/src/gpu/ops/GrAAConvexPathRenderer.cpp
@@ -530,7 +530,7 @@
return sk_sp<GrGeometryProcessor>(new QuadEdgeEffect(color, localMatrix, usesLocalCoords));
}
- virtual ~QuadEdgeEffect() {}
+ ~QuadEdgeEffect() override {}
const char* name() const override { return "QuadEdge"; }
diff --git a/src/gpu/ops/GrAnalyticRectOp.cpp b/src/gpu/ops/GrAnalyticRectOp.cpp
index 5dbfd5e..45e20f0 100644
--- a/src/gpu/ops/GrAnalyticRectOp.cpp
+++ b/src/gpu/ops/GrAnalyticRectOp.cpp
@@ -69,7 +69,7 @@
const SkMatrix& localMatrix() const { return fLocalMatrix; }
- virtual ~RectGeometryProcessor() {}
+ ~RectGeometryProcessor() override {}
const char* name() const override { return "RectEdge"; }
diff --git a/src/gpu/ops/GrMSAAPathRenderer.cpp b/src/gpu/ops/GrMSAAPathRenderer.cpp
index 04b0b14..ccbd0e2 100644
--- a/src/gpu/ops/GrMSAAPathRenderer.cpp
+++ b/src/gpu/ops/GrMSAAPathRenderer.cpp
@@ -116,7 +116,7 @@
return new MSAAQuadProcessor(viewMatrix);
}
- virtual ~MSAAQuadProcessor() {}
+ ~MSAAQuadProcessor() override {}
const char* name() const override { return "MSAAQuadProcessor"; }
diff --git a/src/gpu/ops/GrOvalOpFactory.cpp b/src/gpu/ops/GrOvalOpFactory.cpp
index 8ab33f5..dbab985 100644
--- a/src/gpu/ops/GrOvalOpFactory.cpp
+++ b/src/gpu/ops/GrOvalOpFactory.cpp
@@ -103,7 +103,7 @@
bool implementsDistanceVector() const override { return !fInClipPlane; }
- virtual ~CircleGeometryProcessor() {}
+ ~CircleGeometryProcessor() override {}
const char* name() const override { return "CircleEdge"; }
@@ -274,7 +274,7 @@
fStroke = stroke;
}
- virtual ~EllipseGeometryProcessor() {}
+ ~EllipseGeometryProcessor() override {}
const char* name() const override { return "EllipseEdge"; }
@@ -416,7 +416,7 @@
fStyle = style;
}
- virtual ~DIEllipseGeometryProcessor() {}
+ ~DIEllipseGeometryProcessor() override {}
const char* name() const override { return "DIEllipseEdge"; }
diff --git a/src/gpu/ops/GrSmallPathRenderer.h b/src/gpu/ops/GrSmallPathRenderer.h
index ba752d0..d43da83 100644
--- a/src/gpu/ops/GrSmallPathRenderer.h
+++ b/src/gpu/ops/GrSmallPathRenderer.h
@@ -21,7 +21,7 @@
class GrSmallPathRenderer : public GrPathRenderer {
public:
GrSmallPathRenderer();
- virtual ~GrSmallPathRenderer();
+ ~GrSmallPathRenderer() override;
private:
StencilSupport onGetStencilSupport(const GrShape&) const override {
diff --git a/src/gpu/vk/GrVkGpuCommandBuffer.h b/src/gpu/vk/GrVkGpuCommandBuffer.h
index d3eece3..93370fe 100644
--- a/src/gpu/vk/GrVkGpuCommandBuffer.h
+++ b/src/gpu/vk/GrVkGpuCommandBuffer.h
@@ -27,7 +27,7 @@
const LoadAndStoreInfo& colorInfo,
const LoadAndStoreInfo& stencilInfo);
- virtual ~GrVkGpuCommandBuffer();
+ ~GrVkGpuCommandBuffer() override;
void end() override;