| 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 #include "gm.h" | 8 #include "gm.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPath.h" | 10 #include "SkPath.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); | 95 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); |
| 96 canvas->translate(SkIntToScalar(50), 0); | 96 canvas->translate(SkIntToScalar(50), 0); |
| 97 draw_rect_tests(canvas); | 97 draw_rect_tests(canvas); |
| 98 | 98 |
| 99 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); | 99 canvas->translate(SK_Scalar1 / 5, SK_Scalar1 / 5); |
| 100 canvas->translate(SkIntToScalar(50), 0); | 100 canvas->translate(SkIntToScalar(50), 0); |
| 101 draw_rect_tests(canvas); | 101 draw_rect_tests(canvas); |
| 102 } | 102 } |
| 103 | 103 |
| 104 uint32_t onGetFlags() const SK_OVERRIDE { return kSkipPipe_Flag; } | |
| 105 | |
| 106 private: | 104 private: |
| 107 typedef skiagm::GM INHERITED; | 105 typedef skiagm::GM INHERITED; |
| 108 }; | 106 }; |
| 109 | 107 |
| 110 DEF_GM( return SkNEW(AAClipGM); ) | 108 DEF_GM( return SkNEW(AAClipGM); ) |
| 111 | 109 |
| 112 ///////////////////////////////////////////////////////////////////////// | 110 ///////////////////////////////////////////////////////////////////////// |
| 113 | 111 |
| 114 #ifdef SK_BUILD_FOR_MAC | 112 #ifdef SK_BUILD_FOR_MAC |
| 115 | 113 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 { kBGRA_8888_SkColorType, kOpaque_SkAlphaType }, | 178 { kBGRA_8888_SkColorType, kOpaque_SkAlphaType }, |
| 181 }; | 179 }; |
| 182 | 180 |
| 183 for (size_t i = 0; i < SK_ARRAY_COUNT(rec); ++i) { | 181 for (size_t i = 0; i < SK_ARRAY_COUNT(rec); ++i) { |
| 184 SkImageInfo info = SkImageInfo::Make(100, 100, rec[i].fCT, rec[i].fA
T); | 182 SkImageInfo info = SkImageInfo::Make(100, 100, rec[i].fCT, rec[i].fA
T); |
| 185 test_image(canvas, info); | 183 test_image(canvas, info); |
| 186 canvas->translate(info.width() + 10, 0); | 184 canvas->translate(info.width() + 10, 0); |
| 187 } | 185 } |
| 188 } | 186 } |
| 189 | 187 |
| 190 uint32_t onGetFlags() const SK_OVERRIDE { return kSkipPipe_Flag; } | |
| 191 | |
| 192 private: | 188 private: |
| 193 typedef skiagm::GM INHERITED; | 189 typedef skiagm::GM INHERITED; |
| 194 }; | 190 }; |
| 195 | 191 |
| 196 #if 0 // Disabled pending fix from reed@ | 192 #if 0 // Disabled pending fix from reed@ |
| 197 DEF_GM( return SkNEW(CGImageGM); ) | 193 DEF_GM( return SkNEW(CGImageGM); ) |
| 198 #endif | 194 #endif |
| 199 #endif | 195 #endif |
| OLD | NEW |