OLD | NEW |
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 Loading... |
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 |
OLD | NEW |