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

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

Issue 1105263002: Remove vertex/index buffer factilities from GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@josh
Patch Set: rebase 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 | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.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 * 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" 10 #include "GrBatch.h"
11 #include "GrBatchTarget.h" 11 #include "GrBatchTarget.h"
12 #include "GrBufferAllocPool.h" 12 #include "GrBufferAllocPool.h"
13 #include "GrContext.h" 13 #include "GrContext.h"
14 #include "GrDefaultGeoProcFactory.h" 14 #include "GrDefaultGeoProcFactory.h"
15 #include "GrDrawTargetCaps.h" 15 #include "GrDrawTargetCaps.h"
16 #include "GrGpu.h" 16 #include "GrGpu.h"
17 #include "GrIndexBuffer.h" 17 #include "GrIndexBuffer.h"
18 #include "GrPathUtils.h" 18 #include "GrPathUtils.h"
19 #include "GrPipelineBuilder.h" 19 #include "GrPipelineBuilder.h"
20 #include "GrProcessor.h" 20 #include "GrProcessor.h"
21 #include "GrVertexBuffer.h"
21 #include "SkGeometry.h" 22 #include "SkGeometry.h"
22 #include "SkStroke.h" 23 #include "SkStroke.h"
23 #include "SkTemplates.h" 24 #include "SkTemplates.h"
24 25
25 #include "effects/GrBezierEffect.h" 26 #include "effects/GrBezierEffect.h"
26 27
27 // quadratics are rendered as 5-sided polys in order to bound the 28 // quadratics are rendered as 5-sided polys in order to bound the
28 // AA stroke around the center-curve. See comments in push_quad_index_buffer and 29 // AA stroke around the center-curve. See comments in push_quad_index_buffer and
29 // bloat_quad. Quadratics and conics share an index buffer 30 // bloat_quad. Quadratics and conics share an index buffer
30 31
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 geometry.fPath = path; 1060 geometry.fPath = path;
1060 SkDEBUGCODE(geometry.fDevBounds = devRect;) 1061 SkDEBUGCODE(geometry.fDevBounds = devRect;)
1061 geometry.fDevClipBounds = devClipBounds; 1062 geometry.fDevClipBounds = devClipBounds;
1062 1063
1063 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf fer, 1064 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf fer,
1064 fQuadsIndexBuffer)); 1065 fQuadsIndexBuffer));
1065 target->drawBatch(pipelineBuilder, batch, &devRect); 1066 target->drawBatch(pipelineBuilder, batch, &devRect);
1066 1067
1067 return true; 1068 return true;
1068 } 1069 }
OLDNEW
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698