diff options
author | mtklein <mtklein@chromium.org> | 2015-01-09 10:06:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-09 10:06:40 -0800 |
commit | 72c9faab45124e08c85f70ca38536914862d947c (patch) | |
tree | 611893b84bb33b1592d058ee0f2382f7f86601b8 /experimental/PdfViewer | |
parent | 4490da227f1475fb66af20532c14d6d9febd18b6 (diff) |
Fix up all the easy virtual ... SK_OVERRIDE cases.
This fixes every case where virtual and SK_OVERRIDE were on the same line,
which should be the bulk of cases. We'll have to manually clean up the rest
over time unless I level up in regexes.
for f in (find . -type f); perl -p -i -e 's/virtual (.*)SK_OVERRIDE/\1SK_OVERRIDE/g' $f; end
BUG=skia:
Review URL: https://codereview.chromium.org/806653007
Diffstat (limited to 'experimental/PdfViewer')
-rw-r--r-- | experimental/PdfViewer/SkNulCanvas.h | 24 | ||||
-rw-r--r-- | experimental/PdfViewer/src/SkPdfContext.cpp | 4 | ||||
-rw-r--r-- | experimental/PdfViewer/src/SkPdfRenderer.cpp | 8 |
3 files changed, 18 insertions, 18 deletions
diff --git a/experimental/PdfViewer/SkNulCanvas.h b/experimental/PdfViewer/SkNulCanvas.h index 5839ad32f8..58c239a053 100644 --- a/experimental/PdfViewer/SkNulCanvas.h +++ b/experimental/PdfViewer/SkNulCanvas.h @@ -26,13 +26,13 @@ public: explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {} virtual ~SkNulCanvas() {} - virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} - virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} - virtual void endCommentGroup() SK_OVERRIDE {} - virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {return NULL;} + void beginCommentGroup(const char* description) SK_OVERRIDE {} + void addComment(const char* kywd, const char* value) SK_OVERRIDE {} + void endCommentGroup() SK_OVERRIDE {} + SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {return NULL;} - virtual bool isClipEmpty() const SK_OVERRIDE { return false; } - virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { + bool isClipEmpty() const SK_OVERRIDE { return false; } + bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { if (NULL != bounds) { bounds->setXYWH(0, 0, SkIntToScalar(this->imageInfo().width()), @@ -40,7 +40,7 @@ public: } return true; } - virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { + bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { if (NULL != bounds) { bounds->setLargest(); } @@ -68,12 +68,12 @@ protected: const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) SK_OVERRIDE {} - virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} - virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} - virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} - virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} + void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} + void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} + void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE {} + void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} - virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVERRIDE {} + void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVERRIDE {} void onDrawPaint(const SkPaint& paint) SK_OVERRIDE {} void onDrawPoints(PointMode mode, size_t count, const SkPoint pts[], diff --git a/experimental/PdfViewer/src/SkPdfContext.cpp b/experimental/PdfViewer/src/SkPdfContext.cpp index 670e6ce48d..038d38e84e 100644 --- a/experimental/PdfViewer/src/SkPdfContext.cpp +++ b/experimental/PdfViewer/src/SkPdfContext.cpp @@ -19,8 +19,8 @@ public: SkCanvas* canvas) : INHERITED(tokenizer, pdfContext, canvas) {} - virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; - virtual void loop() SK_OVERRIDE; + SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; + void loop() SK_OVERRIDE; private: typedef SkPdfTokenLooper INHERITED; diff --git a/experimental/PdfViewer/src/SkPdfRenderer.cpp b/experimental/PdfViewer/src/SkPdfRenderer.cpp index 35e6e060ad..037606694e 100644 --- a/experimental/PdfViewer/src/SkPdfRenderer.cpp +++ b/experimental/PdfViewer/src/SkPdfRenderer.cpp @@ -212,8 +212,8 @@ public: explicit PdfInlineImageLooper(SkPdfTokenLooper* parent) : INHERITED(parent) {} - virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; - virtual void loop() SK_OVERRIDE; + SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; + void loop() SK_OVERRIDE; private: typedef SkPdfTokenLooper INHERITED; @@ -224,8 +224,8 @@ public: explicit PdfCompatibilitySectionLooper(SkPdfTokenLooper* parent) : INHERITED (parent) {} - virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; - virtual void loop() SK_OVERRIDE; + SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; + void loop() SK_OVERRIDE; private: typedef SkPdfTokenLooper INHERITED; |