Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: src/utils/SkTextBox.cpp

Issue 1099333004: Update {virtual,override} to follow C++11 style in src/utils. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkEventTracer.cpp ('k') | src/utils/SkTextureCompressor_Blitter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkTextBox.cpp
diff --git a/src/utils/SkTextBox.cpp b/src/utils/SkTextBox.cpp
index 05b3b49e4538c50734a45d5d815eb05594d17e85..af05cadfc6e8a709d2dff8022e459527ee410e5b 100644
--- a/src/utils/SkTextBox.cpp
+++ b/src/utils/SkTextBox.cpp
@@ -244,9 +244,9 @@ class CanvasVisitor : public SkTextBox::Visitor {
SkCanvas* fCanvas;
public:
CanvasVisitor(SkCanvas* canvas) : fCanvas(canvas) {}
-
- virtual void operator()(const char text[], size_t length, SkScalar x, SkScalar y,
- const SkPaint& paint) override {
+
+ void operator()(const char text[], size_t length, SkScalar x, SkScalar y,
+ const SkPaint& paint) override {
fCanvas->drawText(text, length, x, y, paint);
}
};
@@ -282,9 +282,9 @@ SkScalar SkTextBox::getTextHeight() const {
class TextBlobVisitor : public SkTextBox::Visitor {
public:
SkTextBlobBuilder fBuilder;
-
- virtual void operator()(const char text[], size_t length, SkScalar x, SkScalar y,
- const SkPaint& paint) override {
+
+ void operator()(const char text[], size_t length, SkScalar x, SkScalar y,
+ const SkPaint& paint) override {
SkPaint p(paint);
p.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
const int count = paint.countText(text, length);
« no previous file with comments | « src/utils/SkEventTracer.cpp ('k') | src/utils/SkTextureCompressor_Blitter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698