Chromium Code Reviews| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 * Gets whether the target is drawing clockwise, counterclockwise, | 134 * Gets whether the target is drawing clockwise, counterclockwise, |
| 135 * or both faces. | 135 * or both faces. |
| 136 * @return the current draw face(s). | 136 * @return the current draw face(s). |
| 137 */ | 137 */ |
| 138 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 138 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } |
| 139 | 139 |
| 140 | 140 |
| 141 /////////////////////////////////////////////////////////////////////////// | 141 /////////////////////////////////////////////////////////////////////////// |
| 142 | 142 |
| 143 bool readsFragPosition() const { return fReadsFragPosition; } | 143 bool readsFragPosition() const { return fReadsFragPosition; } |
| 144 bool readsCoverage() const { return fReadsCoverage; } | |
| 144 | 145 |
| 145 private: | 146 private: |
| 146 GrPipeline() { /** Initialized in factory function*/ } | 147 GrPipeline() { /** Initialized in factory function*/ } |
| 147 | 148 |
| 148 /** | 149 /** |
| 149 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization. | 150 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization. |
| 150 */ | 151 */ |
| 151 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, | 152 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, |
| 152 GrXferProcessor::OptFlags, | 153 GrXferProcessor::OptFlags, |
| 153 const GrProcOptInfo& colorPOI, | 154 const GrProcOptInfo& colorPOI, |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 173 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; | 174 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; |
| 174 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 175 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; |
| 175 RenderTarget fRenderTarget; | 176 RenderTarget fRenderTarget; |
| 176 GrScissorState fScissorState; | 177 GrScissorState fScissorState; |
| 177 GrStencilSettings fStencilSettings; | 178 GrStencilSettings fStencilSettings; |
| 178 GrPipelineBuilder::DrawFace fDrawFace; | 179 GrPipelineBuilder::DrawFace fDrawFace; |
| 179 uint32_t fFlags; | 180 uint32_t fFlags; |
| 180 ProgramXferProcessor fXferProcessor; | 181 ProgramXferProcessor fXferProcessor; |
| 181 FragmentProcessorArray fFragmentProcessors; | 182 FragmentProcessorArray fFragmentProcessors; |
| 182 bool fReadsFragPosition; | 183 bool fReadsFragPosition; |
| 184 bool fReadsCoverage; // Will this program use coverage? | |
|
bsalomon
2015/11/30 15:56:53
Given that this is now moved from XP to Pipeline,
egdaniel
2015/11/30 16:29:14
Done.
| |
| 183 | 185 |
| 184 // This value is also the index in fFragmentProcessors where coverage proces sors begin. | 186 // This value is also the index in fFragmentProcessors where coverage proces sors begin. |
| 185 int fNumColorProcessors; | 187 int fNumColorProcessors; |
| 186 | 188 |
| 187 typedef SkRefCnt INHERITED; | 189 typedef SkRefCnt INHERITED; |
| 188 }; | 190 }; |
| 189 | 191 |
| 190 #endif | 192 #endif |
| OLD | NEW |