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

Side by Side Diff: gm/convexpolyeffect.cpp

Issue 1139723004: Preliminary attempt to remove batch tracker (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup5
Patch Set: tweaks 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 this->drawGpuOnlyMessage(canvas); 151 this->drawGpuOnlyMessage(canvas);
152 return; 152 return;
153 } 153 }
154 GrContext* context = rt->getContext(); 154 GrContext* context = rt->getContext();
155 if (NULL == context) { 155 if (NULL == context) {
156 return; 156 return;
157 } 157 }
158 158
159 static const GrColor color = 0xff000000; 159 static const GrColor color = 0xff000000;
160 SkAutoTUnref<const GrGeometryProcessor> gp( 160 SkAutoTUnref<const GrGeometryProcessor> gp(
161 GrDefaultGeoProcFactory::Create(GrDefaultGeoProcFactory::kPositi on_GPType, color)); 161 GrDefaultGeoProcFactory::Create(GrDefaultGeoProcFactory::kPositi on_GPType, color,
162 false, false));
162 163
163 SkScalar y = 0; 164 SkScalar y = 0;
164 for (SkTLList<SkPath>::Iter iter(fPaths, SkTLList<SkPath>::Iter::kHead_I terStart); 165 for (SkTLList<SkPath>::Iter iter(fPaths, SkTLList<SkPath>::Iter::kHead_I terStart);
165 iter.get(); 166 iter.get();
166 iter.next()) { 167 iter.next()) {
167 const SkPath* path = iter.get(); 168 const SkPath* path = iter.get();
168 SkScalar x = 0; 169 SkScalar x = 0;
169 170
170 for (int et = 0; et < kGrProcessorEdgeTypeCnt; ++et) { 171 for (int et = 0; et < kGrProcessorEdgeTypeCnt; ++et) {
171 GrTestTarget tt; 172 GrTestTarget tt;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 SkTLList<SkPath> fPaths; 267 SkTLList<SkPath> fPaths;
267 SkTLList<SkRect> fRects; 268 SkTLList<SkRect> fRects;
268 269
269 typedef GM INHERITED; 270 typedef GM INHERITED;
270 }; 271 };
271 272
272 DEF_GM( return SkNEW(ConvexPolyEffect); ) 273 DEF_GM( return SkNEW(ConvexPolyEffect); )
273 } 274 }
274 275
275 #endif 276 #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