| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkGradientShader.h" | 10 #include "SkGradientShader.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 rec[i].fTexs, rec[i].fColors, | 103 rec[i].fTexs, rec[i].fColors, |
| 104 xfer, fan, SK_ARRAY_COUNT(fan), paint); | 104 xfer, fan, SK_ARRAY_COUNT(fan), paint); |
| 105 canvas->translate(200, 0); | 105 canvas->translate(200, 0); |
| 106 } | 106 } |
| 107 canvas->restore(); | 107 canvas->restore(); |
| 108 canvas->translate(0, 200); | 108 canvas->translate(0, 200); |
| 109 xfer->unref(); | 109 xfer->unref(); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 #if 1 | |
| 114 virtual uint32_t onGetFlags() const { | |
| 115 // https://code.google.com/p/skia/issues/detail?id=1956 | |
| 116 return kSkipGPU_Flag; | |
| 117 } | |
| 118 #endif | |
| 119 | |
| 120 private: | 113 private: |
| 121 typedef skiagm::GM INHERITED; | 114 typedef skiagm::GM INHERITED; |
| 122 }; | 115 }; |
| 123 | 116 |
| 124 DEF_GM( return SkNEW(VerticesGM); ) | 117 DEF_GM( return SkNEW(VerticesGM); ) |
| OLD | NEW |