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

Side by Side Diff: gm/convexpolyeffect.cpp

Issue 1127273007: Iterate over instanced draws in GrGpu rather than above GrBatchTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove dead code Created 5 years, 7 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 | « gm/beziereffects.cpp ('k') | src/gpu/GrAAConvexPathRenderer.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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(batchTarget, ver texStride, 1)); 57 SkPoint* verts = reinterpret_cast<SkPoint*>(helper.init(batchTarget, ver texStride, 1));
58 if (!verts) { 58 if (!verts) {
59 return; 59 return;
60 } 60 }
61 61
62 // Make sure any artifacts around the exterior of path are visible by us ing overly 62 // Make sure any artifacts around the exterior of path are visible by us ing overly
63 // conservative bounding geometry. 63 // conservative bounding geometry.
64 fGeometry.fBounds.outset(5.f, 5.f); 64 fGeometry.fBounds.outset(5.f, 5.f);
65 fGeometry.fBounds.toQuad(verts); 65 fGeometry.fBounds.toQuad(verts);
66 66
67 helper.issueDraws(batchTarget); 67 helper.issueDraw(batchTarget);
68 } 68 }
69 69
70 Geometry fGeometry; 70 Geometry fGeometry;
71 71
72 typedef GrTestBatch INHERITED; 72 typedef GrTestBatch INHERITED;
73 }; 73 };
74 74
75 /** 75 /**
76 * This GM directly exercises a GrProcessor that draws convex polygons. 76 * This GM directly exercises a GrProcessor that draws convex polygons.
77 */ 77 */
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 SkTLList<SkPath> fPaths; 261 SkTLList<SkPath> fPaths;
262 SkTLList<SkRect> fRects; 262 SkTLList<SkRect> fRects;
263 263
264 typedef GM INHERITED; 264 typedef GM INHERITED;
265 }; 265 };
266 266
267 DEF_GM( return SkNEW(ConvexPolyEffect); ) 267 DEF_GM( return SkNEW(ConvexPolyEffect); )
268 } 268 }
269 269
270 #endif 270 #endif
OLDNEW
« no previous file with comments | « gm/beziereffects.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698