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 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 * Gets whether the target is drawing clockwise, counterclockwise, | 125 * Gets whether the target is drawing clockwise, counterclockwise, |
126 * or both faces. | 126 * or both faces. |
127 * @return the current draw face(s). | 127 * @return the current draw face(s). |
128 */ | 128 */ |
129 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 129 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } |
130 | 130 |
131 /// @} | 131 /// @} |
132 | 132 |
133 /////////////////////////////////////////////////////////////////////////// | 133 /////////////////////////////////////////////////////////////////////////// |
134 | 134 |
135 bool readsFragPosition() const { return fReadsFragPosition; } | 135 const GrDeviceCoordTexture* getDstCopy() const { return fDstCopy.texture() ?
&fDstCopy : NULL; } |
| 136 |
| 137 const GrProgramDesc::DescInfo& descInfo() const { return fDescInfo; } |
136 | 138 |
137 const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; } | 139 const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; } |
138 | 140 |
139 private: | 141 private: |
140 // TODO we can have one constructor once GrBatch is complete | 142 // TODO we can have one constructor once GrBatch is complete |
141 void internalConstructor(const GrPipelineBuilder&, | 143 void internalConstructor(const GrPipelineBuilder&, |
142 const GrProcOptInfo& colorPOI, | 144 const GrProcOptInfo& colorPOI, |
143 const GrProcOptInfo& coveragePOI, | 145 const GrProcOptInfo& coveragePOI, |
144 const GrDrawTargetCaps&, | 146 const GrDrawTargetCaps&, |
145 const GrScissorState&, | 147 const GrScissorState&, |
(...skipping 22 matching lines...) Expand all Loading... |
168 kHWAA_Flag = 0x2, | 170 kHWAA_Flag = 0x2, |
169 }; | 171 }; |
170 | 172 |
171 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget; | 173 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget; |
172 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; | 174 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; |
173 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 175 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; |
174 RenderTarget fRenderTarget; | 176 RenderTarget fRenderTarget; |
175 GrScissorState fScissorState; | 177 GrScissorState fScissorState; |
176 GrStencilSettings fStencilSettings; | 178 GrStencilSettings fStencilSettings; |
177 GrPipelineBuilder::DrawFace fDrawFace; | 179 GrPipelineBuilder::DrawFace fDrawFace; |
| 180 GrDeviceCoordTexture fDstCopy; |
178 uint32_t fFlags; | 181 uint32_t fFlags; |
179 ProgramXferProcessor fXferProcessor; | 182 ProgramXferProcessor fXferProcessor; |
180 FragmentStageArray fFragmentStages; | 183 FragmentStageArray fFragmentStages; |
181 bool fReadsFragPosition; | 184 GrProgramDesc::DescInfo fDescInfo; |
182 GrPipelineInfo fInitBT; | 185 GrPipelineInfo fInitBT; |
183 | 186 |
184 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. | 187 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. |
185 int fNumColorStages; | 188 int fNumColorStages; |
186 | 189 |
187 GrProgramDesc fDesc; | 190 GrProgramDesc fDesc; |
188 | 191 |
189 typedef SkRefCnt INHERITED; | 192 typedef SkRefCnt INHERITED; |
190 }; | 193 }; |
191 | 194 |
192 #endif | 195 #endif |
OLD | NEW |