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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 * or both faces. | 133 * or both faces. |
134 * @return the current draw face(s). | 134 * @return the current draw face(s). |
135 */ | 135 */ |
136 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 136 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } |
137 | 137 |
138 | 138 |
139 /////////////////////////////////////////////////////////////////////////// | 139 /////////////////////////////////////////////////////////////////////////// |
140 | 140 |
141 bool readsFragPosition() const { return fReadsFragPosition; } | 141 bool readsFragPosition() const { return fReadsFragPosition; } |
142 | 142 |
143 const SkTArray<const GrCoordTransform*, true>& coordTransforms() const { | |
144 return fCoordTransforms; | |
145 } | |
146 | |
147 private: | 143 private: |
148 GrPipeline() { /** Initialized in factory function*/ } | 144 GrPipeline() { /** Initialized in factory function*/ } |
149 | 145 |
150 /** | 146 /** |
151 * Alter the program desc and inputs (attribs and processors) based on the b
lend optimization. | 147 * Alter the program desc and inputs (attribs and processors) based on the b
lend optimization. |
152 */ | 148 */ |
153 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, | 149 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, |
154 GrXferProcessor::OptFlags, | 150 GrXferProcessor::OptFlags, |
155 const GrProcOptInfo& colorPOI, | 151 const GrProcOptInfo& colorPOI, |
156 const GrProcOptInfo& coveragePOI, | 152 const GrProcOptInfo& coveragePOI, |
(...skipping 23 matching lines...) Expand all Loading... |
180 GrStencilSettings fStencilSettings; | 176 GrStencilSettings fStencilSettings; |
181 GrPipelineBuilder::DrawFace fDrawFace; | 177 GrPipelineBuilder::DrawFace fDrawFace; |
182 uint32_t fFlags; | 178 uint32_t fFlags; |
183 ProgramXferProcessor fXferProcessor; | 179 ProgramXferProcessor fXferProcessor; |
184 FragmentProcessorArray fFragmentProcessors; | 180 FragmentProcessorArray fFragmentProcessors; |
185 bool fReadsFragPosition; | 181 bool fReadsFragPosition; |
186 | 182 |
187 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. | 183 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. |
188 int fNumColorProcessors; | 184 int fNumColorProcessors; |
189 | 185 |
190 SkSTArray<8, const GrCoordTransform*, true> fCoordTransforms; | |
191 GrProgramDesc fDesc; | |
192 | |
193 typedef SkRefCnt INHERITED; | 186 typedef SkRefCnt INHERITED; |
194 }; | 187 }; |
195 | 188 |
196 #endif | 189 #endif |
OLD | NEW |