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

Side by Side Diff: gm/gm.h

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « gm/glyph_pos_align.cpp ('k') | gm/gm_expectations.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef skiagm_DEFINED 8 #ifndef skiagm_DEFINED
9 #define skiagm_DEFINED 9 #define skiagm_DEFINED
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; 120 typedef SkTRegistry<GM*(*)(void*)> GMRegistry;
121 121
122 class SimpleGM : public skiagm::GM { 122 class SimpleGM : public skiagm::GM {
123 public: 123 public:
124 SimpleGM(const SkString& name, 124 SimpleGM(const SkString& name,
125 void (*drawProc)(SkCanvas*), 125 void (*drawProc)(SkCanvas*),
126 const SkISize& size) 126 const SkISize& size)
127 : fName(name), fDrawProc(drawProc), fSize(size) {} 127 : fName(name), fDrawProc(drawProc), fSize(size) {}
128 protected: 128 protected:
129 void onDraw(SkCanvas* canvas) SK_OVERRIDE; 129 void onDraw(SkCanvas* canvas) override;
130 SkISize onISize() SK_OVERRIDE; 130 SkISize onISize() override;
131 SkString onShortName() SK_OVERRIDE; 131 SkString onShortName() override;
132 private: 132 private:
133 SkString fName; 133 SkString fName;
134 void (*fDrawProc)(SkCanvas*); 134 void (*fDrawProc)(SkCanvas*);
135 SkISize fSize; 135 SkISize fSize;
136 }; 136 };
137 } 137 }
138 138
139 #endif 139 #endif
OLDNEW
« no previous file with comments | « gm/glyph_pos_align.cpp ('k') | gm/gm_expectations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698