Update more directories under src/ to follow C++11 style rule for {virtual,override}.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override. The entries were found using the following command line: $ find src/ -iname "*.h" -o -iname "*.cpp" | xargs pcregrep -M "[^\n/]+virtual\ [^;{]+\ [a-zA-Z0-9_]+\([^;{]+\ override[ \n]*[;{]" The regex was a courtesy of nick@chromium.org BUG=None R=mtklein@google.com NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1086143003
This commit is contained in:
parent
567ff2f614
commit
7831a4bbb4
@ -63,9 +63,9 @@ protected:
|
||||
* Initiates the bmp decode
|
||||
*
|
||||
*/
|
||||
virtual Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
|
||||
size_t dstRowBytes, const Options&, SkPMColor*,
|
||||
int*) override;
|
||||
Result onGetPixels(const SkImageInfo& dstInfo, void* dst,
|
||||
size_t dstRowBytes, const Options&, SkPMColor*,
|
||||
int*) override;
|
||||
|
||||
SkEncodedFormat onGetEncodedFormat() const override { return kBMP_SkEncodedFormat; }
|
||||
|
||||
|
@ -66,9 +66,9 @@ public:
|
||||
|
||||
SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); }
|
||||
|
||||
virtual SkShader* onNewShader(SkShader::TileMode,
|
||||
SkShader::TileMode,
|
||||
const SkMatrix* localMatrix) const override;
|
||||
SkShader* onNewShader(SkShader::TileMode,
|
||||
SkShader::TileMode,
|
||||
const SkMatrix* localMatrix) const override;
|
||||
|
||||
bool isOpaque() const override;
|
||||
|
||||
|
@ -24,8 +24,7 @@ public:
|
||||
SkCanvas* onNewCanvas() override;
|
||||
SkSurface* onNewSurface(const SkImageInfo&) override;
|
||||
SkImage* onNewImageSnapshot(Budgeted) override;
|
||||
virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y,
|
||||
const SkPaint*) override;
|
||||
void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) override;
|
||||
void onCopyOnWrite(ContentChangeMode) override;
|
||||
void onDiscard() override;
|
||||
|
||||
|
@ -25,8 +25,7 @@ public:
|
||||
SkCanvas* onNewCanvas() override;
|
||||
SkSurface* onNewSurface(const SkImageInfo&) override;
|
||||
SkImage* onNewImageSnapshot(Budgeted) override;
|
||||
virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y,
|
||||
const SkPaint*) override;
|
||||
void onDraw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) override;
|
||||
void onCopyOnWrite(ContentChangeMode) override;
|
||||
|
||||
private:
|
||||
|
@ -44,11 +44,11 @@ protected:
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
virtual Result onGetPixels(const SkImageInfo& info,
|
||||
void* pixels, size_t rowBytes, const Options&,
|
||||
SkPMColor ctable[], int* ctableCount) override;
|
||||
virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
|
||||
SkYUVColorSpace* colorSpace) override;
|
||||
Result onGetPixels(const SkImageInfo& info,
|
||||
void* pixels, size_t rowBytes, const Options&,
|
||||
SkPMColor ctable[], int* ctableCount) override;
|
||||
bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3],
|
||||
SkYUVColorSpace* colorSpace) override;
|
||||
|
||||
private:
|
||||
typedef SkImageGenerator INHERITED;
|
||||
|
@ -242,9 +242,9 @@ protected:
|
||||
bool onDecodeSubset(SkBitmap* bitmap, const SkIRect& rect) override;
|
||||
#endif
|
||||
Result onDecode(SkStream* stream, SkBitmap* bm, Mode) override;
|
||||
virtual bool onDecodeYUV8Planes(SkStream* stream, SkISize componentSizes[3],
|
||||
void* planes[3], size_t rowBytes[3],
|
||||
SkYUVColorSpace* colorSpace) override;
|
||||
bool onDecodeYUV8Planes(SkStream* stream, SkISize componentSizes[3],
|
||||
void* planes[3], size_t rowBytes[3],
|
||||
SkYUVColorSpace* colorSpace) override;
|
||||
|
||||
private:
|
||||
#ifdef SK_BUILD_FOR_ANDROID
|
||||
|
@ -17,10 +17,10 @@ public:
|
||||
void* procSIMD)
|
||||
: INHERITED(rec, mode), fProcSIMD(procSIMD) {}
|
||||
|
||||
virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
|
||||
const SkAlpha aa[]) const override;
|
||||
virtual void xfer16(uint16_t dst[], const SkPMColor src[],
|
||||
int count, const SkAlpha aa[]) const override;
|
||||
void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
|
||||
const SkAlpha aa[]) const override;
|
||||
void xfer16(uint16_t dst[], const SkPMColor src[],
|
||||
int count, const SkAlpha aa[]) const override;
|
||||
|
||||
SK_TO_STRING_OVERRIDE()
|
||||
|
||||
|
@ -9,10 +9,10 @@ public:
|
||||
void* procSIMD)
|
||||
: INHERITED(rec, mode), fProcSIMD(procSIMD) {}
|
||||
|
||||
virtual void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
|
||||
const SkAlpha aa[]) const override;
|
||||
virtual void xfer16(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src,
|
||||
int count, const SkAlpha* SK_RESTRICT aa) const override;
|
||||
void xfer32(SkPMColor dst[], const SkPMColor src[], int count,
|
||||
const SkAlpha aa[]) const override;
|
||||
void xfer16(uint16_t* SK_RESTRICT dst, const SkPMColor* SK_RESTRICT src,
|
||||
int count, const SkAlpha* SK_RESTRICT aa) const override;
|
||||
|
||||
SK_TO_STRING_OVERRIDE()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user