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 "GrGpu.h" | 12 #include "GrGpu.h" |
| 13 #include "GrNonAtomicRef.h" |
13 #include "GrPendingFragmentStage.h" | 14 #include "GrPendingFragmentStage.h" |
14 #include "GrPrimitiveProcessor.h" | 15 #include "GrPrimitiveProcessor.h" |
15 #include "GrProgramDesc.h" | 16 #include "GrProgramDesc.h" |
16 #include "GrStencil.h" | 17 #include "GrStencil.h" |
17 #include "GrTypesPriv.h" | 18 #include "GrTypesPriv.h" |
18 #include "SkMatrix.h" | 19 #include "SkMatrix.h" |
19 #include "SkRefCnt.h" | 20 #include "SkRefCnt.h" |
20 | 21 |
21 class GrBatch; | 22 class GrBatch; |
22 class GrDeviceCoordTexture; | 23 class GrDeviceCoordTexture; |
23 class GrPipelineBuilder; | 24 class GrPipelineBuilder; |
24 | 25 |
25 /** | 26 /** |
26 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable | 27 * Class that holds an optimized version of a GrPipelineBuilder. It is meant to
be an immutable |
27 * class, and contains all data needed to set the state for a gpu draw. | 28 * class, and contains all data needed to set the state for a gpu draw. |
28 */ | 29 */ |
29 class GrPipeline { | 30 class GrPipeline : public GrNonAtomicRef { |
30 public: | 31 public: |
31 | |
32 | |
33 GrPipeline(const GrPipelineBuilder&, | 32 GrPipeline(const GrPipelineBuilder&, |
34 const GrProcOptInfo& colorPOI, | 33 const GrProcOptInfo& colorPOI, |
35 const GrProcOptInfo& coveragePOI, | 34 const GrProcOptInfo& coveragePOI, |
36 const GrCaps&, | 35 const GrCaps&, |
37 const GrScissorState&, | 36 const GrScissorState&, |
38 const GrXferProcessor::DstTexture*); | 37 const GrXferProcessor::DstTexture*); |
39 | 38 |
40 /* | 39 /* |
41 * Returns true if these pipelines are equivalent. | 40 * Returns true if these pipelines are equivalent. |
42 */ | 41 */ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 140 |
142 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. | 141 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. |
143 int fNumColorStages; | 142 int fNumColorStages; |
144 | 143 |
145 GrProgramDesc fDesc; | 144 GrProgramDesc fDesc; |
146 | 145 |
147 typedef SkRefCnt INHERITED; | 146 typedef SkRefCnt INHERITED; |
148 }; | 147 }; |
149 | 148 |
150 #endif | 149 #endif |
OLD | NEW |