Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Side by Side Diff: gm/beziereffects.cpp

Issue 947443003: Move clip off of draw target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gm/rrects.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « no previous file | gm/rrects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698