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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 * or both faces. | 97 * or both faces. |
98 * @return the current draw face(s). | 98 * @return the current draw face(s). |
99 */ | 99 */ |
100 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 100 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } |
101 | 101 |
102 | 102 |
103 /////////////////////////////////////////////////////////////////////////// | 103 /////////////////////////////////////////////////////////////////////////// |
104 | 104 |
105 bool readsFragPosition() const { return fReadsFragPosition; } | 105 bool readsFragPosition() const { return fReadsFragPosition; } |
106 | 106 |
107 const GrPipelineInfo& infoForPrimitiveProcessor() const { | 107 const GrPipelineOptimizations& infoForPrimitiveProcessor() const { |
108 return fInfoForPrimitiveProcessor; | 108 return fInfoForPrimitiveProcessor; |
109 } | 109 } |
110 | 110 |
111 const SkTArray<const GrCoordTransform*, true>& coordTransforms() const { | 111 const SkTArray<const GrCoordTransform*, true>& coordTransforms() const { |
112 return fCoordTransforms; | 112 return fCoordTransforms; |
113 } | 113 } |
114 | 114 |
115 private: | 115 private: |
116 GrPipeline(const GrPipelineBuilder&, | 116 GrPipeline(const GrPipelineBuilder&, |
117 const GrProcOptInfo& colorPOI, | 117 const GrProcOptInfo& colorPOI, |
(...skipping 30 matching lines...) Expand all Loading... |
148 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; | 148 typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; |
149 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 149 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; |
150 RenderTarget fRenderTarget; | 150 RenderTarget fRenderTarget; |
151 GrScissorState fScissorState; | 151 GrScissorState fScissorState; |
152 GrStencilSettings fStencilSettings; | 152 GrStencilSettings fStencilSettings; |
153 GrPipelineBuilder::DrawFace fDrawFace; | 153 GrPipelineBuilder::DrawFace fDrawFace; |
154 uint32_t fFlags; | 154 uint32_t fFlags; |
155 ProgramXferProcessor fXferProcessor; | 155 ProgramXferProcessor fXferProcessor; |
156 FragmentStageArray fFragmentStages; | 156 FragmentStageArray fFragmentStages; |
157 bool fReadsFragPosition; | 157 bool fReadsFragPosition; |
158 GrPipelineInfo fInfoForPrimitiveProcessor; | 158 GrPipelineOptimizations fInfoForPrimitiveProcessor; |
159 | 159 |
160 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. | 160 // This function is equivalent to the offset into fFragmentStages where cove
rage stages begin. |
161 int fNumColorStages; | 161 int fNumColorStages; |
162 | 162 |
163 SkSTArray<8, const GrCoordTransform*, true> fCoordTransforms; | 163 SkSTArray<8, const GrCoordTransform*, true> fCoordTransforms; |
164 GrProgramDesc fDesc; | 164 GrProgramDesc fDesc; |
165 | 165 |
166 typedef SkRefCnt INHERITED; | 166 typedef SkRefCnt INHERITED; |
167 }; | 167 }; |
168 | 168 |
169 #endif | 169 #endif |
OLD | NEW |