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 #include "gm.h" | 7 #include "gm.h" |
8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
9 #include "SkGradientShader.h" | 9 #include "SkGradientShader.h" |
10 #include "SkUnitMappers.h" | 10 #include "SkUnitMappers.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // disable 565 for now, til mike fixes the debug assert | 207 // disable 565 for now, til mike fixes the debug assert |
208 return this->INHERITED::onGetFlags() | kSkip565_Flag; | 208 return this->INHERITED::onGetFlags() | kSkip565_Flag; |
209 } | 209 } |
210 | 210 |
211 private: | 211 private: |
212 typedef GM INHERITED; | 212 typedef GM INHERITED; |
213 }; | 213 }; |
214 | 214 |
215 /////////////////////////////////////////////////////////////////////////////// | 215 /////////////////////////////////////////////////////////////////////////////// |
216 | 216 |
217 #ifndef SK_BUILD_FOR_ANDROID | |
218 static GM* MyFactory(void*) { return new ShaderText2GM; } | 217 static GM* MyFactory(void*) { return new ShaderText2GM; } |
219 static GMRegistry reg(MyFactory); | 218 static GMRegistry reg(MyFactory); |
220 #endif | |
221 } | 219 } |
OLD | NEW |