Remove stray semicolons.

Turns out function declarations don't end in semicolons...

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2720

No public API changes.
TBR=reed@google.com

Change-Id: I72b56d52e1ff7fa6e89c295b0de8c46599791ebb
Reviewed-on: https://skia-review.googlesource.com/2720
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2016-09-27 09:34:10 -04:00 committed by Skia Commit-Bot
parent 9766f00166
commit fc6c37b981
69 changed files with 111 additions and 112 deletions

View File

@ -30,7 +30,7 @@ class DCShader : public SkShader {
public:
DCShader(const SkMatrix& matrix) : fDeviceMatrix(matrix) {}
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DCShader);
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DCShader)
void flatten(SkWriteBuffer& buf) const override {
buf.writeMatrix(fDeviceMatrix);

View File

@ -99,7 +99,6 @@ config("default") {
"-Wno-documentation-unknown-command",
"-Wno-double-promotion",
"-Wno-exit-time-destructors", # TODO: OK outside libskia
"-Wno-extra-semi",
"-Wno-float-conversion",
"-Wno-float-equal",
"-Wno-format-nonliteral",

View File

@ -18,7 +18,7 @@ public:
* Allocate a new SkBBoxHierarchy. Return NULL on failure.
*/
virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const = 0;
virtual ~SkBBHFactory() {};
virtual ~SkBBHFactory() {}
};
class SK_API SkRTreeFactory : public SkBBHFactory {

View File

@ -66,7 +66,7 @@ public:
fSize.set(SK_Scalar1, SK_Scalar1);
// 'asPoints' needs to initialize/fill-in 'fClipRect' if it sets
// the kUseClip flag
};
}
~PointData() {
delete [] fPoints;
}

View File

@ -58,11 +58,11 @@ public:
SkPoint* atPoint(int i) {
SkASSERT((unsigned) i < (unsigned) fPathRef->fPointCnt);
return this->points() + i;
};
}
const SkPoint* atPoint(int i) const {
SkASSERT((unsigned) i < (unsigned) fPathRef->fPointCnt);
return this->points() + i;
};
}
/**
* Adds the verb and allocates space for the number of points indicated by the verb. The

View File

@ -74,7 +74,7 @@ public:
const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType,
GrSLPrecision precision) const {
return fFloatPrecisions[shaderType][precision];
};
}
/**
* Is there any difference between the float shader variable precision types? If this is true
@ -84,7 +84,7 @@ public:
bool floatPrecisionVaries() const { return fShaderPrecisionVaries; }
/**
* PLS storage size in bytes (0 when not supported). The PLS spec defines a minimum size of 16
* PLS storage size in bytes (0 when not supported). The PLS spec defines a minimum size of 16
* bytes whenever PLS is supported.
*/
int pixelLocalStorageSize() const { return fPixelLocalStorageSize; }
@ -93,7 +93,7 @@ public:
* True if this context supports the necessary extensions and features to enable the PLS path
* renderer.
*/
bool plsPathRenderingSupport() const {
bool plsPathRenderingSupport() const {
#if GR_ENABLE_PLS_PATH_RENDERING
return fPLSPathRenderingSupport;
#else
@ -120,7 +120,7 @@ protected:
bool fPLSPathRenderingSupport;
private:
virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
virtual void onApplyOptionsOverrides(const GrContextOptions&) {}
typedef SkRefCnt INHERITED;
};
@ -280,7 +280,7 @@ public:
bool fullClearIsFree() const { return fFullClearIsFree; }
/** True in environments that will issue errors if memory uploaded to buffers
/** True in environments that will issue errors if memory uploaded to buffers
is not initialized (even if not read by draw calls). */
bool mustClearUploadedBufferData() const { return fMustClearUploadedBufferData; }
@ -344,7 +344,7 @@ protected:
int fMaxWindowRectangles;
private:
virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
virtual void onApplyOptionsOverrides(const GrContextOptions&) {}
bool fSuppressPrints : 1;
bool fImmediateFlush: 1;

View File

@ -137,7 +137,7 @@ private:
bool apply(GrContext*, GrDrawContext*, bool, bool, GrAppliedClip*) const final {
return true;
}
bool isRRect(const SkRect&, SkRRect*, bool*) const override { return false; };
bool isRRect(const SkRect&, SkRRect*, bool*) const override { return false; }
};
#endif

View File

@ -11,7 +11,7 @@
#include "SkTypes.h"
struct GrContextOptions {
GrContextOptions() {};
GrContextOptions() {}
// Suppress prints for the GrContext.
bool fSuppressPrints = false;

View File

@ -260,7 +260,7 @@ private:
* resources and populate the scratchKey with the key.
* By default resources are not recycled as scratch.
**/
virtual void computeScratchKey(GrScratchKey*) const { };
virtual void computeScratchKey(GrScratchKey*) const { }
/**
* Frees the object in the underlying 3D API. Called by CacheAccess.

View File

@ -101,7 +101,7 @@ public:
}
~Optional() { if (fPtr) fPtr->~T(); }
ACT_AS_PTR(fPtr);
ACT_AS_PTR(fPtr)
private:
T* fPtr;
};
@ -118,7 +118,7 @@ public:
}
~Adopted() { if (fPtr) fPtr->~T(); }
ACT_AS_PTR(fPtr);
ACT_AS_PTR(fPtr)
private:
T* fPtr;
};
@ -131,7 +131,7 @@ public:
PODArray(T* ptr) : fPtr(ptr) {}
// Default copy and assign.
ACT_AS_PTR(fPtr);
ACT_AS_PTR(fPtr)
private:
T* fPtr;
};

View File

@ -45,7 +45,7 @@ struct SkChunkAlloc::Block {
sk_free(block);
block = next;
}
};
}
bool contains(const void* addr) const {
const char* ptr = reinterpret_cast<const char*>(addr);

View File

@ -12,7 +12,7 @@
class SK_API SkColorMatrixFilterRowMajor255 : public SkColorFilter {
public:
SkColorMatrixFilterRowMajor255() {};
SkColorMatrixFilterRowMajor255() {}
explicit SkColorMatrixFilterRowMajor255(const SkScalar array[20]);
/** Creates a color matrix filter that returns the same value in all four channels. */

View File

@ -405,7 +405,7 @@ private:
template<typename ProcessOneGlyph>
class GlyphFindAndPlaceInterface : SkNoncopyable {
public:
virtual ~GlyphFindAndPlaceInterface() { };
virtual ~GlyphFindAndPlaceInterface() { }
// findAndPositionGlyph calculates the position of the glyph, finds the glyph, and
// returns the position of where the next glyph will be using the glyph's advance and
@ -419,7 +419,7 @@ private:
const char** text, SkPoint position, ProcessOneGlyph&& processOneGlyph) {
SkFAIL("Should never get here.");
return {0.0f, 0.0f};
};
}
};
// GlyphFindAndPlaceSubpixel handles finding and placing glyphs when sub-pixel positioning is

View File

@ -413,7 +413,7 @@ private:
const uint32_t* src = this->pixelAddress(x, y);
SkOpts::srcover_srgb_srgb(fDest, src, 1, 1);
fDest += 1;
};
}
const uint32_t* const fSrc;
const int32_t fWidth;

View File

@ -207,7 +207,7 @@ public:
void get4Pixels(
const void* src, int index, Sk4f* px0, Sk4f* px1, Sk4f* px2, Sk4f* px3) const {
fPixelAccessor->get4Pixels(src, index, px0, px1, px2, px3);
};
}
Sk4f getPixelFromRow(const void* row, int index) const {
return fPixelAccessor->getPixelFromRow(row, index);

View File

@ -410,7 +410,7 @@ public:
SkScalar answer = SkMinScalar(SkScalarAbs(unbias), fYsCap[0]);
SkASSERT(0 <= answer && answer < fYMax);
return answer;
};
}
private:
SkScalar fYMax;

View File

@ -45,7 +45,7 @@ protected:
fColor = color;
fMode = mode;
this->updateCache();
};
}
void flatten(SkWriteBuffer&) const override;

View File

@ -33,7 +33,7 @@ public:
class Provider {
public:
virtual ~Provider() {};
virtual ~Provider() {}
/** Called for each span of the object being drawn on the CPU. Your subclass should set
the appropriate normals that correspond to the specified device coordinates.

View File

@ -19,7 +19,7 @@ struct SkBufferBlock {
SkBufferBlock(size_t capacity) : fNext(nullptr), fUsed(0), fCapacity(capacity) {}
const void* startData() const { return this + 1; };
const void* startData() const { return this + 1; }
size_t avail() const { return fCapacity - fUsed; }
void* availData() { return (char*)this->startData() + fUsed; }

View File

@ -243,7 +243,7 @@ public:
}
DiscardableFactory discardableFactory() const { return fDiscardableFactory; }
SkBitmap::Allocator* allocator() const { return fAllocator; };
SkBitmap::Allocator* allocator() const { return fAllocator; }
SkCachedData* newCachedData(size_t bytes);

View File

@ -61,8 +61,8 @@ protected:
}
return 0;
}
int onCountGlyphs() const override { return 0; };
int onGetUPEM() const override { return 0; };
int onCountGlyphs() const override { return 0; }
int onGetUPEM() const override { return 0; }
class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings {
public:
bool next(SkTypeface::LocalizedString*) override { return false; }
@ -72,7 +72,7 @@ protected:
}
SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override {
return new EmptyLocalizedStrings;
};
}
int onGetTableTags(SkFontTableTag tags[]) const override { return 0; }
size_t onGetTableData(SkFontTableTag, size_t, size_t, void*) const override {
return 0;

View File

@ -22,7 +22,7 @@ class GrTextureProvider;
// profile that is just rotated about the origin of the circle.
class GrCircleBlurFragmentProcessor : public GrFragmentProcessor {
public:
~GrCircleBlurFragmentProcessor() override {};
~GrCircleBlurFragmentProcessor() override {}
const char* name() const override { return "CircleBlur"; }

View File

@ -219,7 +219,7 @@ private:
const ArithmeticXP& arith = processor.cast<ArithmeticXP>();
pdman.set4f(fKUni, arith.k1(), arith.k2(), arith.k3(), arith.k4());
fEnforcePMColor = arith.enforcePMColor();
};
}
GrGLSLProgramDataManager::UniformHandle fKUni;
bool fEnforcePMColor;

View File

@ -37,7 +37,7 @@ public:
std::move(dst)));
}
~GrArithmeticFP() override {};
~GrArithmeticFP() override {}
const char* name() const override { return "Arithmetic"; }

View File

@ -125,7 +125,7 @@ private:
const SkScalar SkBlurMaskFilterImpl::kMAX_BLUR_SIGMA = SkIntToScalar(128);
sk_sp<SkMaskFilter> SkBlurMaskFilter::Make(SkBlurStyle style, SkScalar sigma,
sk_sp<SkMaskFilter> SkBlurMaskFilter::Make(SkBlurStyle style, SkScalar sigma,
const SkRect& occluder, uint32_t flags) {
if (!SkScalarIsFinite(sigma) || sigma <= 0) {
return nullptr;
@ -184,7 +184,7 @@ static uint32_t insert_into_arrays(SkScalar* array1, SkScalar* array2,
(*num)++;
}
break;
}
}
}
return skipMask;
@ -1072,7 +1072,7 @@ public:
float sigma, float xformedSigma,
const SkRRect& srcRRect, const SkRRect& devRRect);
virtual ~GrRRectBlurEffect() {};
virtual ~GrRRectBlurEffect() {}
const char* name() const override { return "GrRRectBlur"; }
const SkRRect& getRRect() const { return fRRect; }
@ -1128,7 +1128,7 @@ static sk_sp<GrTexture> find_or_create_rrect_blur_mask(GrContext* context,
if (!dc) {
return nullptr;
}
GrPaint grPaint;
grPaint.setAntiAlias(doAA);
@ -1175,13 +1175,13 @@ sk_sp<GrFragmentProcessor> GrRRectBlurEffect::Make(GrContext* context,
int ignoredSize;
uint32_t ignored32;
bool ninePatchable = SkBlurMaskFilter::ComputeBlurredRRectParams(srcRRect, devRRect,
bool ninePatchable = SkBlurMaskFilter::ComputeBlurredRRectParams(srcRRect, devRRect,
SkRect::MakeEmpty(),
sigma, xformedSigma,
&rrectToDraw, &size,
ignored, ignored,
ignored, ignored,
&ignoredSize, &ignoredSize,
ignored, ignored,
&ignoredSize, &ignoredSize,
&ignored32);
if (!ninePatchable) {
return nullptr;
@ -1423,7 +1423,7 @@ bool SkBlurMaskFilterImpl::directFilterRRectMaskGPU(GrContext* context,
static const uint16_t fullI[6] = { 0, 1, 2, 0, 2, 3 };
memcpy(indices, fullI, sizeof(fullI));
numIndices = 6;
}
}
drawContext->drawVertices(clip, newPaint, viewMatrix, kTriangles_GrPrimitiveType,
numPoints, points, nullptr, nullptr, indices, numIndices);

View File

@ -357,7 +357,7 @@ protected:
}
#if SK_SUPPORT_GPU
sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
sk_sp<SkSpecialImage> filterImageGPU(SkSpecialImage* source,
SkSpecialImage* input,
const SkIRect& bounds,
const SkMatrix& matrix,
@ -802,7 +802,7 @@ public:
SkPoint3 surfaceToLight(int x, int y, int z, SkScalar surfaceScale) const {
return fDirection;
};
}
const SkPoint3& lightColor(const SkPoint3&) const { return this->color(); }
LightType type() const override { return kDistant_LightType; }
const SkPoint3& direction() const { return fDirection; }
@ -861,7 +861,7 @@ public:
surfaceScale));
fast_normalize(&direction);
return direction;
};
}
const SkPoint3& lightColor(const SkPoint3&) const { return this->color(); }
LightType type() const override { return kPoint_LightType; }
const SkPoint3& location() const { return fLocation; }
@ -966,7 +966,7 @@ public:
surfaceScale));
fast_normalize(&direction);
return direction;
};
}
SkPoint3 lightColor(const SkPoint3& surfaceToLight) const {
SkScalar cosAngle = -surfaceToLight.dot(fS);
SkScalar scale = 0;
@ -1118,7 +1118,7 @@ sk_sp<SkImageFilter> SkLightingImageFilter::MakeDistantLitDiffuse(const SkPoint3
sk_sp<SkImageFilter> input,
const CropRect* cropRect) {
sk_sp<SkImageFilterLight> light(new SkDistantLight(direction, lightColor));
return SkDiffuseLightingImageFilter::Make(std::move(light), surfaceScale, kd,
return SkDiffuseLightingImageFilter::Make(std::move(light), surfaceScale, kd,
std::move(input), cropRect);
}
@ -1212,7 +1212,7 @@ sk_sp<SkImageFilter> SkDiffuseLightingImageFilter::Make(sk_sp<SkImageFilterLight
if (kd < 0) {
return nullptr;
}
return sk_sp<SkImageFilter>(new SkDiffuseLightingImageFilter(std::move(light), surfaceScale,
return sk_sp<SkImageFilter>(new SkDiffuseLightingImageFilter(std::move(light), surfaceScale,
kd, std::move(input), cropRect));
}

View File

@ -42,7 +42,7 @@ public:
xInvInset, yInvInset));
}
~GrMagnifierEffect() override {};
~GrMagnifierEffect() override {}
const char* name() const override { return "Magnifier"; }
@ -311,9 +311,9 @@ sk_sp<SkSpecialImage> SkMagnifierImageFilter::onFilterImage(SkSpecialImage* sour
offset->fY = bounds.top();
bounds.offset(-inputOffset);
SkScalar yOffset = inputTexture->origin() == kTopLeft_GrSurfaceOrigin
SkScalar yOffset = inputTexture->origin() == kTopLeft_GrSurfaceOrigin
? fSrcRect.y()
: inputTexture->height() -
: inputTexture->height() -
fSrcRect.height() * inputTexture->height() / bounds.height() - fSrcRect.y();
int boundsY = inputTexture->origin() == kTopLeft_GrSurfaceOrigin
? bounds.y()

View File

@ -229,7 +229,7 @@ template <typename T> void* operator new(size_t, GrTAllocator<T>*);
template <typename T> class GrTAllocator : SkNoncopyable {
public:
virtual ~GrTAllocator() { this->reset(); };
virtual ~GrTAllocator() { this->reset(); }
/**
* Create an allocator

View File

@ -62,7 +62,7 @@ inline bool circle_stays_circle(const SkMatrix& m) {
* p is the position in the normalized space.
* outerRad is the outerRadius in device space.
* innerRad is the innerRadius in normalized space (ignored if not stroking).
* If fUsesDistanceVectorField is set in fragment processors in the same program, then
* If fUsesDistanceVectorField is set in fragment processors in the same program, then
* an additional vertex attribute is available via args.fFragBuilder->distanceVectorName():
* vec4f : (v.xy, outerDistance, innerDistance)
* v is a normalized vector pointing to the outer edge
@ -103,7 +103,7 @@ public:
fStroke = stroke;
}
bool implementsDistanceVector() const override { return !fInClipPlane; };
bool implementsDistanceVector() const override { return !fInClipPlane; }
virtual ~CircleGeometryProcessor() {}
@ -1324,7 +1324,7 @@ private:
///////////////////////////////////////////////////////////////////////////////
// We have three possible cases for geometry for a roundrect.
// We have three possible cases for geometry for a roundrect.
//
// In the case of a normal fill or a stroke, we draw the roundrect as a 9-patch:
// ____________

View File

@ -56,7 +56,7 @@ namespace GrPathUtils {
// points of the quadratic.
class QuadUVMatrix {
public:
QuadUVMatrix() {};
QuadUVMatrix() {}
// Initialize the matrix from the control pts
QuadUVMatrix(const SkPoint controlPts[3]) { this->set(controlPts); }
void set(const SkPoint controlPts[3]);

View File

@ -18,7 +18,7 @@
*/
template <typename T> class GrPendingProgramElement : SkNoncopyable {
public:
GrPendingProgramElement() : fObj(nullptr) { };
GrPendingProgramElement() : fObj(nullptr) { }
// Adds a pending execution on obj.
explicit GrPendingProgramElement(T* obj) : fObj(obj) {

View File

@ -226,7 +226,7 @@ protected:
size_t fVertexStride;
private:
void notifyRefCntIsZero() const final {};
void notifyRefCntIsZero() const final {}
virtual bool hasExplicitLocalCoords() const = 0;
typedef GrProcessor INHERITED;

View File

@ -67,7 +67,7 @@ private:
class GrTraceMarkerSet::Iter {
public:
Iter() {};
Iter() {}
Iter& operator=(const Iter& i) {
fCurrentIndex = i.fCurrentIndex;
fMarkers = i.fMarkers;

View File

@ -55,11 +55,11 @@ struct Segment {
const SkPoint& endPt() const {
GR_STATIC_ASSERT(0 == kLine && 1 == kQuad);
return fPts[fType];
};
}
const SkPoint& endNorm() const {
GR_STATIC_ASSERT(0 == kLine && 1 == kQuad);
return fNorms[fType];
};
}
};
typedef SkTArray<Segment, true> SegmentArray;

View File

@ -63,7 +63,7 @@ public:
fInWidthHeight = &this->addVertexAttrib("inWidthHeight", kVec2f_GrVertexAttribType);
}
bool implementsDistanceVector() const override { return true; };
bool implementsDistanceVector() const override { return true; }
const Attribute* inPosition() const { return fInPosition; }
const Attribute* inColor() const { return fInColor; }

View File

@ -35,7 +35,7 @@ public:
, fDirection(direction)
, fRadius(radius) {}
virtual ~Gr1DKernelEffect() {};
virtual ~Gr1DKernelEffect() {}
static int WidthFromRadius(int radius) { return 2 * radius + 1; }

View File

@ -68,7 +68,7 @@ public:
const CoverageSetOpXP& xp = processor.cast<CoverageSetOpXP>();
uint32_t key = xp.invertCoverage() ? 0x0 : 0x1;
b->add32(key);
};
}
private:
void emitOutputsForBlendState(const EmitArgs& args) override {
@ -82,7 +82,7 @@ private:
}
}
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {};
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {}
typedef GrGLSLXferProcessor INHERITED;
};

View File

@ -20,7 +20,7 @@ class DisableColorXP : public GrXferProcessor {
public:
static GrXferProcessor* Create() { return new DisableColorXP; }
~DisableColorXP() override {};
~DisableColorXP() override {}
const char* name() const override { return "Disable Color"; }

View File

@ -20,7 +20,7 @@ public:
return sk_sp<GrFragmentProcessor>(new DitherEffect);
}
virtual ~DitherEffect() {};
virtual ~DitherEffect() {}
const char* name() const override { return "Dither"; }

View File

@ -22,7 +22,7 @@ public:
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkPoint& center,
SkScalar radius);
virtual ~CircleEffect() {};
virtual ~CircleEffect() {}
const char* name() const override { return "Circle"; }
@ -187,7 +187,7 @@ public:
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkPoint& center,
SkScalar rx, SkScalar ry);
virtual ~EllipseEffect() {};
virtual ~EllipseEffect() {}
const char* name() const override { return "Ellipse"; }

View File

@ -439,7 +439,7 @@ public:
b->add32(xp.getBlendFormula().fPrimaryOutputType |
(xp.getBlendFormula().fSecondaryOutputType << 3));
GR_STATIC_ASSERT(BlendFormula::kLast_OutputType < 8);
};
}
private:
void emitOutputsForBlendState(const EmitArgs& args) override {
@ -641,7 +641,7 @@ private:
args.fInputCoverage);
}
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {};
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override {}
typedef GrGLSLXferProcessor INHERITED;
};

View File

@ -48,7 +48,7 @@ public:
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, uint32_t circularCornerFlags,
const SkRRect&);
virtual ~CircularRRectEffect() {};
virtual ~CircularRRectEffect() {}
const char* name() const override { return "CircularRRect"; }
@ -390,7 +390,7 @@ class EllipticalRRectEffect : public GrFragmentProcessor {
public:
static sk_sp<GrFragmentProcessor> Make(GrPrimitiveEdgeType, const SkRRect&);
virtual ~EllipticalRRectEffect() {};
virtual ~EllipticalRRectEffect() {}
const char* name() const override { return "EllipticalRRect"; }

View File

@ -676,7 +676,7 @@ public:
SkFAIL("Unexpected pname to GetBufferParamateriv");
break;
}
};
}
// NV_path_rendering
GrGLuint genPaths(GrGLsizei range) override {

View File

@ -98,7 +98,7 @@ struct FamilyData {
, fDepth(1)
, fSkip(0)
, fHandler(&topLevelHandler, 1)
{ };
{ }
XML_Parser fParser; // The expat parser doing the work, owned by caller
SkTDArray<FontFamily*>& fFamilies; // The array to append families, owned by caller

View File

@ -409,7 +409,7 @@ public:
SkTypeface_stream(std::unique_ptr<SkFontData> data, const SkFontStyle& style, bool fixedWidth)
: INHERITED(style, fixedWidth)
, fData(std::move(data))
{ };
{ }
void onGetFamilyName(SkString* familyName) const override {
familyName->reset();
@ -512,7 +512,7 @@ private:
: INHERITED(skfontstyle_from_fcpattern(pattern),
FC_PROPORTIONAL != get_int(pattern, FC_SPACING, FC_PROPORTIONAL))
, fPattern(pattern)
{ };
{ }
typedef SkTypeface_FreeType INHERITED;
};

View File

@ -138,8 +138,8 @@ static void test_matchStyleCSS3(skiatest::Reporter* reporter) {
}
return 0;
}
int onCountGlyphs() const override { return 0; };
int onGetUPEM() const override { return 0; };
int onCountGlyphs() const override { return 0; }
int onGetUPEM() const override { return 0; }
class EmptyLocalizedStrings : public SkTypeface::LocalizedStrings {
public:
bool next(SkTypeface::LocalizedString*) override { return false; }
@ -149,7 +149,7 @@ static void test_matchStyleCSS3(skiatest::Reporter* reporter) {
}
SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override {
return new EmptyLocalizedStrings;
};
}
int onGetTableTags(SkFontTableTag tags[]) const override { return 0; }
size_t onGetTableData(SkFontTableTag, size_t, size_t, void*) const override {
return 0;

View File

@ -18,14 +18,14 @@
// that can be set and checked.
class A {
public:
A() {};
A() {}
virtual void setValues(int v) {
fChar = static_cast<char>(v);
}
virtual bool checkValues(int v) {
return fChar == static_cast<char>(v);
}
virtual ~A() {};
virtual ~A() {}
void* operator new(size_t size) {
if (!gPool.get()) {
@ -63,7 +63,7 @@ SkAutoTDelete<GrMemoryPool> A::gPool;
class B : public A {
public:
B() {};
B() {}
virtual void setValues(int v) {
fDouble = static_cast<double>(v);
this->INHERITED::setValues(v);
@ -72,7 +72,7 @@ public:
return fDouble == static_cast<double>(v) &&
this->INHERITED::checkValues(v);
}
virtual ~B() {};
virtual ~B() {}
private:
double fDouble;
@ -82,7 +82,7 @@ private:
class C : public A {
public:
C() {};
C() {}
virtual void setValues(int v) {
fInt64 = static_cast<int64_t>(v);
this->INHERITED::setValues(v);
@ -91,7 +91,7 @@ public:
return fInt64 == static_cast<int64_t>(v) &&
this->INHERITED::checkValues(v);
}
virtual ~C() {};
virtual ~C() {}
private:
int64_t fInt64;

View File

@ -1108,7 +1108,7 @@ static void test_lcd_coverage_fallback_case(skiatest::Reporter* reporter, const
const char* name() const override { return "Test LCD Text Batch"; }
void initBatchTracker(const GrXPOverridesForBatch&) override {}
bool onCombineIfPossible(GrBatch*, const GrCaps&) override { return false; }
void onPrepareDraws(Target*) const override {};
void onPrepareDraws(Target*) const override {}
typedef GrVertexBatch INHERITED;
} testLCDCoverageBatch;

View File

@ -84,7 +84,7 @@ namespace {
*/
class Geo {
public:
virtual ~Geo() {};
virtual ~Geo() {}
virtual GrShape makeShape(const SkPaint&) const = 0;
virtual SkPath path() const = 0;
// These functions allow tests to check for special cases where style gets

View File

@ -33,7 +33,7 @@ public:
static int GetCount() { return gCount; }
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DummyRasterizer);
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DummyRasterizer)
private:
static int gCount;

View File

@ -58,7 +58,7 @@ private:
for (auto i = 0; i < numAttribs; ++i) {
this->addVertexAttrib(fAttribNames[i].c_str(), kVec2f_GrVertexAttribType);
}
};
}
const char* name() const override { return "Dummy GP"; }
GrGLSLPrimitiveProcessor* createGLSLInstance(const GrGLSLCaps&) const override {

View File

@ -29,7 +29,7 @@ public:
}
#endif
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(TestLooper);
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(TestLooper)
private:
class TestDrawLooperContext : public SkDrawLooper::Context {

View File

@ -334,7 +334,7 @@ DEF_TEST(sk_sp, reporter) {
struct StructB : public SkRefCnt {
sk_sp<StructA> a;
~StructB() override {}; // Some clang versions don't emit this implicitly.
~StructB() override {} // Some clang versions don't emit this implicitly.
};
// Create a reference cycle.

View File

@ -127,13 +127,13 @@ protected:
SK_ABORT("unimplemented");
return 0;
}
int onCountGlyphs() const override { return 0; };
int onGetUPEM() const override { return 0; };
int onCountGlyphs() const override { return 0; }
int onGetUPEM() const override { return 0; }
void onGetFamilyName(SkString* familyName) const override { familyName->reset(); }
SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override {
SK_ABORT("unimplemented");
return nullptr;
};
}
int onGetTableTags(SkFontTableTag tags[]) const override { return 0; }
size_t onGetTableData(SkFontTableTag, size_t, size_t, void*) const override { return 0; }
};

View File

@ -192,7 +192,7 @@ private:
outColorSecondary, proc);
}
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override { };
void onSetData(const GrGLSLProgramDataManager&, const GrXferProcessor&) override { }
typedef GrGLSLXferProcessor INHERITED;
};

View File

@ -24,7 +24,7 @@ public:
ContextInfo() = default;
ContextInfo& operator=(const ContextInfo&) = default;
GrBackend backend() const { return fBackend; };
GrBackend backend() const { return fBackend; }
GrContext* grContext() const { return fGrContext; }

View File

@ -299,7 +299,7 @@ public:
bool onCopySurface(GrSurface* dst,
GrSurface* src,
const SkIRect& srcRect,
const SkIPoint& dstPoint) override { return false; };
const SkIPoint& dstPoint) override { return false; }
void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&,
int* effectiveSampleCnt, SamplePattern*) override {
@ -316,7 +316,7 @@ public:
return nullptr;
}
void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {};
void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
private:
void onResetContext(uint32_t resetBits) override {}

View File

@ -25,7 +25,7 @@ namespace GrTest {
GrContext. In the future this object may provide some guards to prevent this. */
class GrTestTarget {
public:
GrTestTarget() {};
GrTestTarget() {}
void init(GrContext*, sk_sp<GrDrawContext>);

View File

@ -14,7 +14,7 @@
////////////////////////////////////////////////////////////////////////////////
class GrBufferObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrBufferObj);
GR_DEFINE_CREATOR(GrBufferObj)
public:
GrBufferObj()

View File

@ -30,7 +30,7 @@ public:
fID = ++fNextID;
}
virtual ~GrFakeRefObj() {};
virtual ~GrFakeRefObj() {}
void ref() {
fRef++;

View File

@ -16,7 +16,7 @@ class GrFBBindableObj;
// TODO: when a framebuffer obj is bound the GL_SAMPLES query must return 0
// TODO: GL_STENCIL_BITS must also be redirected to the framebuffer
class GrFrameBufferObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrFrameBufferObj);
GR_DEFINE_CREATOR(GrFrameBufferObj)
public:
GrFrameBufferObj()

View File

@ -15,7 +15,7 @@ class GrShaderObj;
////////////////////////////////////////////////////////////////////////////////
class GrProgramObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrProgramObj);
GR_DEFINE_CREATOR(GrProgramObj)
public:
GrProgramObj()

View File

@ -13,7 +13,7 @@
////////////////////////////////////////////////////////////////////////////////
class GrRenderBufferObj : public GrFBBindableObj {
GR_DEFINE_CREATOR(GrRenderBufferObj);
GR_DEFINE_CREATOR(GrRenderBufferObj)
public:
GrRenderBufferObj()

View File

@ -14,7 +14,7 @@
////////////////////////////////////////////////////////////////////////////////
class GrShaderObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrShaderObj);
GR_DEFINE_CREATOR(GrShaderObj)
public:
GrShaderObj()

View File

@ -15,7 +15,7 @@ class GrTextureUnitObj;
////////////////////////////////////////////////////////////////////////////////
class GrTextureObj : public GrFBBindableObj {
GR_DEFINE_CREATOR(GrTextureObj);
GR_DEFINE_CREATOR(GrTextureObj)
public:
GrTextureObj()

View File

@ -16,7 +16,7 @@ class GrTextureObj;
// GL emulation objects they are derived from GrFakeRefObj to provide some
// uniformity in how the debug interface class manages resources
class GrTextureUnitObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrTextureUnitObj);
GR_DEFINE_CREATOR(GrTextureUnitObj)
public:
GrTextureUnitObj()

View File

@ -11,7 +11,7 @@
#include "GrFakeRefObj.h"
class GrVertexArrayObj : public GrFakeRefObj {
GR_DEFINE_CREATOR(GrVertexArrayObj);
GR_DEFINE_CREATOR(GrVertexArrayObj)
public:
GrVertexArrayObj() : GrFakeRefObj() {}

View File

@ -74,7 +74,7 @@ private:
static Display* get_display() {
class AutoDisplay {
public:
AutoDisplay() { fDisplay = XOpenDisplay(nullptr); };
AutoDisplay() { fDisplay = XOpenDisplay(nullptr); }
~AutoDisplay() {
if (fDisplay) {
XCloseDisplay(fDisplay);

View File

@ -21,7 +21,7 @@ public:
~NullGLContext() override { this->teardown(); }
private:
void onPlatformMakeCurrent() const override {};
void onPlatformMakeCurrent() const override {}
void onPlatformSwapBuffers() const override {}
GrGLFuncPtr onPlatformGetProcAddress(const char*) const override { return nullptr; }
};