From f059900f75639f1b1a03f2c25333ef9aa22d58b8 Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 13 Jul 2015 06:18:39 -0700 Subject: Fix up -Winconsistent-missing-override (and a couple presubmit fixes) This allows us to turn back on -Werror for LLVM coverage builds, and more generally supports building with Clang 3.7. No public API changes. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/1232463006 --- bench/InterpBench.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bench/InterpBench.cpp') diff --git a/bench/InterpBench.cpp b/bench/InterpBench.cpp index 9d8f32de03..8171131ebc 100644 --- a/bench/InterpBench.cpp +++ b/bench/InterpBench.cpp @@ -1,3 +1,10 @@ +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + #include "Benchmark.h" #include "SkColorPriv.h" #include "SkMatrix.h" @@ -31,11 +38,11 @@ public: protected: virtual int mulLoopCount() const { return 1; } - virtual const char* onGetName() { + const char* onGetName() override { return fName.c_str(); } - virtual void onDraw(const int loops, SkCanvas*) { + void onDraw(const int loops, SkCanvas*) override { int n = loops * this->mulLoopCount(); for (int i = 0; i < n; i++) { this->performTest(fDst, fFx, fDx, kBuffer); -- cgit v1.2.3