| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 * Gets whether the target is drawing clockwise, counterclockwise, | 143 * Gets whether the target is drawing clockwise, counterclockwise, |
| 144 * or both faces. | 144 * or both faces. |
| 145 * @return the current draw face(s). | 145 * @return the current draw face(s). |
| 146 */ | 146 */ |
| 147 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 147 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } |
| 148 | 148 |
| 149 | 149 |
| 150 /////////////////////////////////////////////////////////////////////////// | 150 /////////////////////////////////////////////////////////////////////////// |
| 151 | 151 |
| 152 bool readsFragPosition() const { return fReadsFragPosition; } | 152 bool readsFragPosition() const { return fReadsFragPosition; } |
| 153 bool ignoresCoverage() const { return fIgnoresCoverage; } |
| 153 | 154 |
| 154 private: | 155 private: |
| 155 GrPipeline() { /** Initialized in factory function*/ } | 156 GrPipeline() { /** Initialized in factory function*/ } |
| 156 | 157 |
| 157 /** | 158 /** |
| 158 * Alter the program desc and inputs (attribs and processors) based on the b
lend optimization. | 159 * Alter the program desc and inputs (attribs and processors) based on the b
lend optimization. |
| 159 */ | 160 */ |
| 160 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, | 161 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, |
| 161 GrXferProcessor::OptFlags, | 162 GrXferProcessor::OptFlags, |
| 162 const GrProcOptInfo& colorPOI, | 163 const GrProcOptInfo& colorPOI, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 182 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; | 183 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; |
| 183 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 184 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; |
| 184 RenderTarget fRenderTarget; | 185 RenderTarget fRenderTarget; |
| 185 GrScissorState fScissorState; | 186 GrScissorState fScissorState; |
| 186 GrStencilSettings fStencilSettings; | 187 GrStencilSettings fStencilSettings; |
| 187 GrPipelineBuilder::DrawFace fDrawFace; | 188 GrPipelineBuilder::DrawFace fDrawFace; |
| 188 uint32_t fFlags; | 189 uint32_t fFlags; |
| 189 ProgramXferProcessor fXferProcessor; | 190 ProgramXferProcessor fXferProcessor; |
| 190 FragmentProcessorArray fFragmentProcessors; | 191 FragmentProcessorArray fFragmentProcessors; |
| 191 bool fReadsFragPosition; | 192 bool fReadsFragPosition; |
| 193 bool fIgnoresCoverage; |
| 192 | 194 |
| 193 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. | 195 // This value is also the index in fFragmentProcessors where coverage proces
sors begin. |
| 194 int fNumColorProcessors; | 196 int fNumColorProcessors; |
| 195 | 197 |
| 196 typedef SkRefCnt INHERITED; | 198 typedef SkRefCnt INHERITED; |
| 197 }; | 199 }; |
| 198 | 200 |
| 199 #endif | 201 #endif |
| OLD | NEW |