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

Side by Side Diff: src/gpu/GrDefaultPathRenderer.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
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawContext.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 "GrDefaultPathRenderer.h" 8 #include "GrDefaultPathRenderer.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 "GrContext.h" 12 #include "GrContext.h"
14 #include "GrDefaultGeoProcFactory.h" 13 #include "GrDefaultGeoProcFactory.h"
15 #include "GrPathUtils.h" 14 #include "GrPathUtils.h"
16 #include "GrPipelineBuilder.h" 15 #include "GrPipelineBuilder.h"
17 #include "GrVertices.h" 16 #include "GrVertices.h"
18 #include "SkGeometry.h" 17 #include "SkGeometry.h"
19 #include "SkString.h" 18 #include "SkString.h"
20 #include "SkStrokeRec.h" 19 #include "SkStrokeRec.h"
21 #include "SkTLazy.h" 20 #include "SkTLazy.h"
22 #include "SkTraceEvent.h" 21 #include "SkTraceEvent.h"
23 22
23 #include "batches/GrBatch.h"
24
24 GrDefaultPathRenderer::GrDefaultPathRenderer(bool separateStencilSupport, 25 GrDefaultPathRenderer::GrDefaultPathRenderer(bool separateStencilSupport,
25 bool stencilWrapOpsSupport) 26 bool stencilWrapOpsSupport)
26 : fSeparateStencil(separateStencilSupport) 27 : fSeparateStencil(separateStencilSupport)
27 , fStencilWrapOps(stencilWrapOpsSupport) { 28 , fStencilWrapOps(stencilWrapOpsSupport) {
28 } 29 }
29 30
30 31
31 //////////////////////////////////////////////////////////////////////////////// 32 ////////////////////////////////////////////////////////////////////////////////
32 // Stencil rules for paths 33 // Stencil rules for paths
33 34
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 geometry.fColor = color; 754 geometry.fColor = color;
754 geometry.fPath = path; 755 geometry.fPath = path;
755 geometry.fTolerance = srcSpaceTol; 756 geometry.fTolerance = srcSpaceTol;
756 757
757 viewMatrix.mapRect(&bounds); 758 viewMatrix.mapRect(&bounds);
758 uint8_t coverage = GrRandomCoverage(random); 759 uint8_t coverage = GrRandomCoverage(random);
759 return DefaultPathBatch::Create(geometry, coverage, viewMatrix, true, bounds ); 760 return DefaultPathBatch::Create(geometry, coverage, viewMatrix, true, bounds );
760 } 761 }
761 762
762 #endif 763 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698