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

Side by Side Diff: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp

Issue 1441683008: Move GrGLPrimitive/GeometryProc to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@xferProcs
Patch Set: nits Created 5 years, 1 month 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/batches/GrAAConvexPathRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.h » ('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 2015 Google Inc. 3 * Copyright 2015 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 #include "GrAALinearizingConvexPathRenderer.h" 9 #include "GrAALinearizingConvexPathRenderer.h"
10 10
11 #include "GrAAConvexTessellator.h" 11 #include "GrAAConvexTessellator.h"
12 #include "GrBatchFlushState.h" 12 #include "GrBatchFlushState.h"
13 #include "GrBatchTest.h" 13 #include "GrBatchTest.h"
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrDefaultGeoProcFactory.h" 15 #include "GrDefaultGeoProcFactory.h"
16 #include "GrGeometryProcessor.h" 16 #include "GrGeometryProcessor.h"
17 #include "GrInvariantOutput.h" 17 #include "GrInvariantOutput.h"
18 #include "GrPathUtils.h" 18 #include "GrPathUtils.h"
19 #include "GrProcessor.h" 19 #include "GrProcessor.h"
20 #include "GrPipelineBuilder.h" 20 #include "GrPipelineBuilder.h"
21 #include "GrStrokeInfo.h" 21 #include "GrStrokeInfo.h"
22 #include "SkGeometry.h" 22 #include "SkGeometry.h"
23 #include "SkString.h" 23 #include "SkString.h"
24 #include "SkTraceEvent.h" 24 #include "SkTraceEvent.h"
25 #include "SkPathPriv.h" 25 #include "SkPathPriv.h"
26 #include "batches/GrVertexBatch.h" 26 #include "batches/GrVertexBatch.h"
27 #include "gl/GrGLGeometryProcessor.h" 27 #include "glsl/GrGLSLGeometryProcessor.h"
28 #include "gl/builders/GrGLProgramBuilder.h" 28 #include "glsl/GrGLSLProgramBuilder.h"
29 29
30 static const int DEFAULT_BUFFER_SIZE = 100; 30 static const int DEFAULT_BUFFER_SIZE = 100;
31 31
32 // The thicker the stroke, the harder it is to produce high-quality results usin g tessellation. For 32 // The thicker the stroke, the harder it is to produce high-quality results usin g tessellation. For
33 // the time being, we simply drop back to software rendering above this stroke w idth. 33 // the time being, we simply drop back to software rendering above this stroke w idth.
34 static const SkScalar kMaxStrokeWidth = 20.0; 34 static const SkScalar kMaxStrokeWidth = 20.0;
35 35
36 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() { 36 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() {
37 } 37 }
38 38
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { 338 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) {
339 AAFlatteningConvexPathBatch::Geometry geometry; 339 AAFlatteningConvexPathBatch::Geometry geometry;
340 geometry.fColor = GrRandomColor(random); 340 geometry.fColor = GrRandomColor(random);
341 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 341 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
342 geometry.fPath = GrTest::TestPathConvex(random); 342 geometry.fPath = GrTest::TestPathConvex(random);
343 343
344 return AAFlatteningConvexPathBatch::Create(geometry); 344 return AAFlatteningConvexPathBatch::Create(geometry);
345 } 345 }
346 346
347 #endif 347 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAConvexPathRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698