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 0 | 113 #if 1 |
114 virtual uint32_t onGetFlags() const { | 114 virtual uint32_t onGetFlags() const { |
115 return kSkipPipe_Flag | kSkipPicture_Flag; | 115 // https://code.google.com/p/skia/issues/detail?id=1956 |
| 116 return kSkipGPU_Flag; |
116 } | 117 } |
117 #endif | 118 #endif |
118 | 119 |
119 private: | 120 private: |
120 typedef skiagm::GM INHERITED; | 121 typedef skiagm::GM INHERITED; |
121 }; | 122 }; |
122 | 123 |
123 DEF_GM( return SkNEW(VerticesGM); ) | 124 DEF_GM( return SkNEW(VerticesGM); ) |
OLD | NEW |