| 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 "GrStencil.h" | 18 #include "GrStencilSettings.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; |
| 54 GrXferProcessor::DstTexture fDstTexture; | 56 GrXferProcessor::DstTexture fDstTexture; |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 /** Creates a pipeline into a pre-allocated buffer */ | 59 /** Creates a pipeline into a pre-allocated buffer */ |
| 58 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesFo
rBatch*); | 60 static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrXPOverridesFo
rBatch*); |
| 59 | 61 |
| 60 /// @} | 62 /// @} |
| 61 | 63 |
| 62 /////////////////////////////////////////////////////////////////////////// | 64 /////////////////////////////////////////////////////////////////////////// |
| 63 /// @name Comparisons | 65 /// @name Comparisons |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 FragmentProcessorArray fFragmentProcessors; | 211 FragmentProcessorArray fFragmentProcessors; |
| 210 bool fIgnoresCoverage; | 212 bool fIgnoresCoverage; |
| 211 | 213 |
| 212 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. | 214 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. |
| 213 int fNumColorProcessors; | 215 int fNumColorProcessors; |
| 214 | 216 |
| 215 typedef SkRefCnt INHERITED; | 217 typedef SkRefCnt INHERITED; |
| 216 }; | 218 }; |
| 217 | 219 |
| 218 #endif | 220 #endif |
| OLD | NEW |