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

Side by Side Diff: gm/convexpolyeffect.cpp

Issue 1132323003: Revert of Preliminary attempt to remove batch tracker (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup5
Patch Set: 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));
163 162
164 SkScalar y = 0; 163 SkScalar y = 0;
165 for (SkTLList<SkPath>::Iter iter(fPaths, SkTLList<SkPath>::Iter::kHead_I terStart); 164 for (SkTLList<SkPath>::Iter iter(fPaths, SkTLList<SkPath>::Iter::kHead_I terStart);
166 iter.get(); 165 iter.get();
167 iter.next()) { 166 iter.next()) {
168 const SkPath* path = iter.get(); 167 const SkPath* path = iter.get();
169 SkScalar x = 0; 168 SkScalar x = 0;
170 169
171 for (int et = 0; et < kGrProcessorEdgeTypeCnt; ++et) { 170 for (int et = 0; et < kGrProcessorEdgeTypeCnt; ++et) {
172 GrTestTarget tt; 171 GrTestTarget tt;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 SkTLList<SkPath> fPaths; 266 SkTLList<SkPath> fPaths;
268 SkTLList<SkRect> fRects; 267 SkTLList<SkRect> fRects;
269 268
270 typedef GM INHERITED; 269 typedef GM INHERITED;
271 }; 270 };
272 271
273 DEF_GM( return SkNEW(ConvexPolyEffect); ) 272 DEF_GM( return SkNEW(ConvexPolyEffect); )
274 } 273 }
275 274
276 #endif 275 #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