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