OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkGradientShader.h" | 10 #include "SkGradientShader.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 canvas->restore(); | 200 canvas->restore(); |
201 | 201 |
202 } | 202 } |
203 | 203 |
204 private: | 204 private: |
205 typedef GM INHERITED; | 205 typedef GM INHERITED; |
206 }; | 206 }; |
207 | 207 |
208 /////////////////////////////////////////////////////////////////////////////// | 208 /////////////////////////////////////////////////////////////////////////////// |
209 | 209 |
210 #ifndef SK_BUILD_FOR_ANDROID | |
211 static GM* MyFactory(void*) { return new ShaderTextGM; } | 210 static GM* MyFactory(void*) { return new ShaderTextGM; } |
212 static GMRegistry reg(MyFactory); | 211 static GMRegistry reg(MyFactory); |
213 #endif | |
214 } | 212 } |
OLD | NEW |