OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |