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

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

Issue 1490283004: Create GLSLUniformHandler class for gpu backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up public api of uniformhandler Created 5 years 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.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 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 "glsl/GrGLSLGeometryProcessor.h" 27 #include "glsl/GrGLSLGeometryProcessor.h"
28 #include "glsl/GrGLSLProgramBuilder.h"
29 28
30 static const int DEFAULT_BUFFER_SIZE = 100; 29 static const int DEFAULT_BUFFER_SIZE = 100;
31 30
32 // The thicker the stroke, the harder it is to produce high-quality results usin g tessellation. For 31 // 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. 32 // the time being, we simply drop back to software rendering above this stroke w idth.
34 static const SkScalar kMaxStrokeWidth = 20.0; 33 static const SkScalar kMaxStrokeWidth = 20.0;
35 34
36 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() { 35 GrAALinearizingConvexPathRenderer::GrAALinearizingConvexPathRenderer() {
37 } 36 }
38 37
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { 347 DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) {
349 AAFlatteningConvexPathBatch::Geometry geometry; 348 AAFlatteningConvexPathBatch::Geometry geometry;
350 geometry.fColor = GrRandomColor(random); 349 geometry.fColor = GrRandomColor(random);
351 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 350 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
352 geometry.fPath = GrTest::TestPathConvex(random); 351 geometry.fPath = GrTest::TestPathConvex(random);
353 352
354 return AAFlatteningConvexPathBatch::Create(geometry); 353 return AAFlatteningConvexPathBatch::Create(geometry);
355 } 354 }
356 355
357 #endif 356 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrAAConvexPathRenderer.cpp ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698