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

Unified Diff: bench/GrMemoryPoolBench.cpp

Issue 1232463006: Fix up -Winconsistent-missing-override (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: llvm_coverage_build Created 5 years, 5 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 | « bench/ChecksumBench.cpp ('k') | bench/InterpBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GrMemoryPoolBench.cpp
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp
index 55690a4323e0dccc79143cb5e3647bd35dd70acd..394577498f9c09e6e889406b5911d9c24e3a2c99 100644
--- a/bench/GrMemoryPoolBench.cpp
+++ b/bench/GrMemoryPoolBench.cpp
@@ -5,6 +5,8 @@
* found in the LICENSE file.
*/
+#include "SkTypes.h"
+
// This tests a Gr class
#if SK_SUPPORT_GPU
@@ -37,11 +39,11 @@ public:
}
protected:
- virtual const char* onGetName() {
+ const char* onGetName() override {
return "grmemorypool_stack";
}
- virtual void onDraw(const int loops, SkCanvas*) {
+ void onDraw(const int loops, SkCanvas*) override {
SkRandom r;
enum {
kMaxObjects = 4 * (1 << 10),
@@ -99,11 +101,11 @@ public:
}
protected:
- virtual const char* onGetName() {
+ const char* onGetName() override {
return "grmemorypool_random";
}
- virtual void onDraw(const int loops, SkCanvas*) {
+ void onDraw(const int loops, SkCanvas*) override {
SkRandom r;
enum {
kMaxObjects = 4 * (1 << 10),
@@ -147,11 +149,11 @@ public:
}
protected:
- virtual const char* onGetName() {
+ const char* onGetName() override {
return "grmemorypool_queue";
}
- virtual void onDraw(const int loops, SkCanvas*) {
+ void onDraw(const int loops, SkCanvas*) override {
SkRandom r;
C* objects[M];
for (int i = 0; i < loops; i++) {
« no previous file with comments | « bench/ChecksumBench.cpp ('k') | bench/InterpBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698