| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 // This test only works with the GPU backend. | 9 // This test only works with the GPU backend. |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 texture[indices[i][0]], | 117 texture[indices[i][0]], |
| 118 texture[indices[i][1]], | 118 texture[indices[i][1]], |
| 119 texture[indices[i][2]], | 119 texture[indices[i][2]], |
| 120 sizes, | 120 sizes, |
| 121 static_cast<SkYUVColorSpace
>(space))); | 121 static_cast<SkYUVColorSpace
>(space))); |
| 122 if (fp) { | 122 if (fp) { |
| 123 SkMatrix viewMatrix; | 123 SkMatrix viewMatrix; |
| 124 viewMatrix.setTranslate(x, y); | 124 viewMatrix.setTranslate(x, y); |
| 125 pipelineBuilder.setRenderTarget(rt); | 125 pipelineBuilder.setRenderTarget(rt); |
| 126 pipelineBuilder.addColorProcessor(fp); | 126 pipelineBuilder.addColorProcessor(fp); |
| 127 tt.target()->drawBWRect(pipelineBuilder, | 127 tt.target()->drawNonAARect(pipelineBuilder, |
| 128 GrColor_WHITE, | 128 GrColor_WHITE, |
| 129 viewMatrix, | 129 viewMatrix, |
| 130 renderRect); | 130 renderRect); |
| 131 } | 131 } |
| 132 x += renderRect.width() + kTestPad; | 132 x += renderRect.width() + kTestPad; |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 SkBitmap fBmp[3]; | 138 SkBitmap fBmp[3]; |
| 139 | 139 |
| 140 typedef GM INHERITED; | 140 typedef GM INHERITED; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 DEF_GM( return SkNEW(YUVtoRGBEffect); ) | 143 DEF_GM( return SkNEW(YUVtoRGBEffect); ) |
| 144 } | 144 } |
| 145 | 145 |
| 146 #endif | 146 #endif |
| OLD | NEW |