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

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

Issue 1425013003: Remove GrGLProcessor and create GrGLSLTextureSampler class. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove grglprocessor from gyp 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/GrTextureDomain.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/GrGLProcessor.h"
28 #include "gl/GrGLGeometryProcessor.h" 27 #include "gl/GrGLGeometryProcessor.h"
29 #include "gl/builders/GrGLProgramBuilder.h" 28 #include "gl/builders/GrGLProgramBuilder.h"
30 29
31 static const int DEFAULT_BUFFER_SIZE = 100; 30 static const int DEFAULT_BUFFER_SIZE = 100;
32 31
33 // 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
34 // 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.
35 static const SkScalar kMaxStrokeWidth = 20.0; 34 static const SkScalar kMaxStrokeWidth = 20.0;
36 35
37 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() { 36 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { 338 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) {
340 AAFlatteningConvexPathBatch::Geometry geometry; 339 AAFlatteningConvexPathBatch::Geometry geometry;
341 geometry.fColor = GrRandomColor(random); 340 geometry.fColor = GrRandomColor(random);
342 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 341 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
343 geometry.fPath = GrTest::TestPathConvex(random); 342 geometry.fPath = GrTest::TestPathConvex(random);
344 343
345 return AAFlatteningConvexPathBatch::Create(geometry); 344 return AAFlatteningConvexPathBatch::Create(geometry);
346 } 345 }
347 346
348 #endif 347 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAConvexPathRenderer.cpp ('k') | src/gpu/effects/GrTextureDomain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698