OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 context->getTestTarget(&tt); | 228 context->getTestTarget(&tt); |
229 SkASSERT(tt.target()); | 229 SkASSERT(tt.target()); |
230 | 230 |
231 GrPipelineBuilder pipelineBuilder; | 231 GrPipelineBuilder pipelineBuilder; |
232 pipelineBuilder.setRenderTarget(rt); | 232 pipelineBuilder.setRenderTarget(rt); |
233 | 233 |
234 BezierCubicOrConicTestBatch::Geometry geometry; | 234 BezierCubicOrConicTestBatch::Geometry geometry; |
235 geometry.fColor = gp->color(); | 235 geometry.fColor = gp->color(); |
236 geometry.fBounds = bounds; | 236 geometry.fBounds = bounds; |
237 | 237 |
238 SkAutoTUnref<GrBatch> batch(BezierCubicOrConicTestBatch::Cre
ate(gp, geometry, klmEqs, | 238 SkAutoTUnref<GrBatch> batch( |
239 klm
Signs[c])); | 239 BezierCubicOrConicTestBatch::Create(gp, geometry, kl
mEqs, klmSigns[c])); |
240 | 240 |
241 tt.target()->drawBatch(&pipelineBuilder, batch, NULL); | 241 tt.target()->drawBatch(&pipelineBuilder, batch, NULL); |
242 } | 242 } |
243 ++col; | 243 ++col; |
244 if (numCols == col) { | 244 if (numCols == col) { |
245 col = 0; | 245 col = 0; |
246 ++row; | 246 ++row; |
247 } | 247 } |
248 } | 248 } |
249 } | 249 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 context->getTestTarget(&tt); | 372 context->getTestTarget(&tt); |
373 SkASSERT(tt.target()); | 373 SkASSERT(tt.target()); |
374 | 374 |
375 GrPipelineBuilder pipelineBuilder; | 375 GrPipelineBuilder pipelineBuilder; |
376 pipelineBuilder.setRenderTarget(rt); | 376 pipelineBuilder.setRenderTarget(rt); |
377 | 377 |
378 BezierCubicOrConicTestBatch::Geometry geometry; | 378 BezierCubicOrConicTestBatch::Geometry geometry; |
379 geometry.fColor = gp->color(); | 379 geometry.fColor = gp->color(); |
380 geometry.fBounds = bounds; | 380 geometry.fBounds = bounds; |
381 | 381 |
382 SkAutoTUnref<GrBatch> batch(BezierCubicOrConicTestBatch::Cre
ate(gp, geometry, klmEqs, | 382 SkAutoTUnref<GrBatch> batch( |
383 1.f
)); | 383 BezierCubicOrConicTestBatch::Create(gp, geometry, kl
mEqs, 1.f)); |
384 | 384 |
385 tt.target()->drawBatch(&pipelineBuilder, batch, NULL); | 385 tt.target()->drawBatch(&pipelineBuilder, batch, NULL); |
386 } | 386 } |
387 ++col; | 387 ++col; |
388 if (numCols == col) { | 388 if (numCols == col) { |
389 col = 0; | 389 col = 0; |
390 ++row; | 390 ++row; |
391 } | 391 } |
392 } | 392 } |
393 } | 393 } |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 typedef GM INHERITED; | 646 typedef GM INHERITED; |
647 }; | 647 }; |
648 | 648 |
649 DEF_GM( return SkNEW(BezierCubicEffects); ) | 649 DEF_GM( return SkNEW(BezierCubicEffects); ) |
650 DEF_GM( return SkNEW(BezierConicEffects); ) | 650 DEF_GM( return SkNEW(BezierConicEffects); ) |
651 DEF_GM( return SkNEW(BezierQuadEffects); ) | 651 DEF_GM( return SkNEW(BezierQuadEffects); ) |
652 | 652 |
653 } | 653 } |
654 | 654 |
655 #endif | 655 #endif |
OLD | NEW |