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

Side by Side Diff: src/gpu/GrAAHairLinePathRenderer.cpp

Issue 1277233002: Make folder for batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrAAHairLinePathRenderer.h" 8 #include "GrAAHairLinePathRenderer.h"
9 9
10 #include "GrBatch.h"
11 #include "GrBatchTarget.h" 10 #include "GrBatchTarget.h"
12 #include "GrBatchTest.h" 11 #include "GrBatchTest.h"
13 #include "GrCaps.h" 12 #include "GrCaps.h"
14 #include "GrContext.h" 13 #include "GrContext.h"
15 #include "GrDefaultGeoProcFactory.h" 14 #include "GrDefaultGeoProcFactory.h"
16 #include "GrIndexBuffer.h" 15 #include "GrIndexBuffer.h"
17 #include "GrPathUtils.h" 16 #include "GrPathUtils.h"
18 #include "GrPipelineBuilder.h" 17 #include "GrPipelineBuilder.h"
19 #include "GrProcessor.h" 18 #include "GrProcessor.h"
20 #include "GrResourceProvider.h" 19 #include "GrResourceProvider.h"
21 #include "GrVertexBuffer.h" 20 #include "GrVertexBuffer.h"
22 #include "SkGeometry.h" 21 #include "SkGeometry.h"
23 #include "SkStroke.h" 22 #include "SkStroke.h"
24 #include "SkTemplates.h" 23 #include "SkTemplates.h"
25 24
25 #include "batches/GrBatch.h"
26
26 #include "effects/GrBezierEffect.h" 27 #include "effects/GrBezierEffect.h"
27 28
28 #define PREALLOC_PTARRAY(N) SkSTArray<(N),SkPoint, true> 29 #define PREALLOC_PTARRAY(N) SkSTArray<(N),SkPoint, true>
29 30
30 // quadratics are rendered as 5-sided polys in order to bound the 31 // quadratics are rendered as 5-sided polys in order to bound the
31 // AA stroke around the center-curve. See comments in push_quad_index_buffer and 32 // AA stroke around the center-curve. See comments in push_quad_index_buffer and
32 // bloat_quad. Quadratics and conics share an index buffer 33 // bloat_quad. Quadratics and conics share an index buffer
33 34
34 // lines are rendered as: 35 // lines are rendered as:
35 // *______________* 36 // *______________*
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 GrColor color = GrRandomColor(random); 990 GrColor color = GrRandomColor(random);
990 SkMatrix viewMatrix = GrTest::TestMatrix(random); 991 SkMatrix viewMatrix = GrTest::TestMatrix(random);
991 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle); 992 GrStrokeInfo stroke(SkStrokeRec::kHairline_InitStyle);
992 SkPath path = GrTest::TestPath(random); 993 SkPath path = GrTest::TestPath(random);
993 SkIRect devClipBounds; 994 SkIRect devClipBounds;
994 devClipBounds.setEmpty(); 995 devClipBounds.setEmpty();
995 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds) ; 996 return create_hairline_batch(color, viewMatrix, path, stroke, devClipBounds) ;
996 } 997 }
997 998
998 #endif 999 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAALinearizingConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698