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

Side by Side Diff: src/gpu/GrPipeline.h

Issue 1969693003: Revert of Separate user and raw stencil settings (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/GrPathRenderer.h ('k') | src/gpu/GrPipeline.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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef GrPipeline_DEFINED 8 #ifndef GrPipeline_DEFINED
9 #define GrPipeline_DEFINED 9 #define GrPipeline_DEFINED
10 10
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrFragmentProcessor.h" 12 #include "GrFragmentProcessor.h"
13 #include "GrGpu.h" 13 #include "GrGpu.h"
14 #include "GrNonAtomicRef.h" 14 #include "GrNonAtomicRef.h"
15 #include "GrPendingProgramElement.h" 15 #include "GrPendingProgramElement.h"
16 #include "GrPrimitiveProcessor.h" 16 #include "GrPrimitiveProcessor.h"
17 #include "GrProgramDesc.h" 17 #include "GrProgramDesc.h"
18 #include "GrStencilSettings.h" 18 #include "GrStencil.h"
19 #include "GrTypesPriv.h" 19 #include "GrTypesPriv.h"
20 #include "SkMatrix.h" 20 #include "SkMatrix.h"
21 #include "SkRefCnt.h" 21 #include "SkRefCnt.h"
22 22
23 class GrBatch; 23 class GrBatch;
24 class GrDeviceCoordTexture; 24 class GrDeviceCoordTexture;
25 class GrPipelineBuilder; 25 class GrPipelineBuilder;
26 26
27 struct GrBatchToXPOverrides { 27 struct GrBatchToXPOverrides {
28 GrBatchToXPOverrides() 28 GrBatchToXPOverrides()
(...skipping 15 matching lines...) Expand all
44 class GrPipeline : public GrNonAtomicRef<GrPipeline> { 44 class GrPipeline : public GrNonAtomicRef<GrPipeline> {
45 public: 45 public:
46 /////////////////////////////////////////////////////////////////////////// 46 ///////////////////////////////////////////////////////////////////////////
47 /// @name Creation 47 /// @name Creation
48 48
49 struct CreateArgs { 49 struct CreateArgs {
50 const GrPipelineBuilder* fPipelineBuilder; 50 const GrPipelineBuilder* fPipelineBuilder;
51 const GrCaps* fCaps; 51 const GrCaps* fCaps;
52 GrPipelineOptimizations fOpts; 52 GrPipelineOptimizations fOpts;
53 const GrScissorState* fScissor; 53 const GrScissorState* fScissor;
54 int fNumStencilBits;
55 bool fHasStencilClip;
56 GrXferProcessor::DstTexture fDstTexture; 54 GrXferProcessor::DstTexture fDstTexture;
57 }; 55 };
58 56
59 /** Creates a pipeline into a pre-allocated buffer */ 57 /** Creates a pipeline into a pre-allocated buffer */
60 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesFo rBatch*); 58 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesFo rBatch*);
61 59
62 /// @} 60 /// @}
63 61
64 /////////////////////////////////////////////////////////////////////////// 62 ///////////////////////////////////////////////////////////////////////////
65 /// @name Comparisons 63 /// @name Comparisons
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 FragmentProcessorArray fFragmentProcessors; 209 FragmentProcessorArray fFragmentProcessors;
212 bool fIgnoresCoverage; 210 bool fIgnoresCoverage;
213 211
214 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 212 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
215 int fNumColorProcessors; 213 int fNumColorProcessors;
216 214
217 typedef SkRefCnt INHERITED; 215 typedef SkRefCnt INHERITED;
218 }; 216 };
219 217
220 #endif 218 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698