Thou shalt use override consistently.

TBR=herb@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1285973006
This commit is contained in:
mtklein 2015-08-19 14:01:42 -07:00 committed by Commit bot
parent ab42ec79d5
commit 3a30cc1cbb
2 changed files with 5 additions and 5 deletions

View File

@ -29,11 +29,11 @@ public:
return string; return string;
} }
virtual void getInvariantOutputColor(GrInitInvariantOutput* out) const { void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
fPrimitiveProcessor->getInvariantOutputColor(out); fPrimitiveProcessor->getInvariantOutputColor(out);
} }
virtual void getInvariantOutputCoverage(GrInitInvariantOutput* out) const { void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
fPrimitiveProcessor->getInvariantOutputCoverage(out); fPrimitiveProcessor->getInvariantOutputCoverage(out);
} }
@ -49,7 +49,7 @@ private:
this->initClassID<GrDrawPathBatch>(); this->initClassID<GrDrawPathBatch>();
} }
virtual void initBatchTracker(const GrPipelineOptimizations& opts) { void initBatchTracker(const GrPipelineOptimizations& opts) override {
fPrimitiveProcessor->initBatchTracker(this->tracker(), opts); fPrimitiveProcessor->initBatchTracker(this->tracker(), opts);
} }

View File

@ -15,8 +15,8 @@
class SkPDFType0Font : public SkPDFFont { class SkPDFType0Font : public SkPDFFont {
public: public:
virtual ~SkPDFType0Font(); virtual ~SkPDFType0Font();
virtual bool multiByteGlyphs() const { return true; } bool multiByteGlyphs() const override { return true; }
virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage); SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage) override;
#ifdef SK_DEBUG #ifdef SK_DEBUG
void emitObject(SkWStream*, void emitObject(SkWStream*,
const SkPDFObjNumMap&, const SkPDFObjNumMap&,