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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 } | 129 } |
130 canvas->restore(); | 130 canvas->restore(); |
131 } | 131 } |
132 | 132 |
133 private: | 133 private: |
134 typedef GM INHERITED; | 134 typedef GM INHERITED; |
135 }; | 135 }; |
136 | 136 |
137 /////////////////////////////////////////////////////////////////////////////// | 137 /////////////////////////////////////////////////////////////////////////////// |
138 | 138 |
139 #ifndef SK_BUILD_FOR_ANDROID | |
140 static GM* MyFactory(void*) { return new ShaderText3GM; } | 139 static GM* MyFactory(void*) { return new ShaderText3GM; } |
141 static GMRegistry reg(MyFactory); | 140 static GMRegistry reg(MyFactory); |
142 #endif | |
143 } | 141 } |
OLD | NEW |