| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 90      * or both faces. | 90      * or both faces. | 
| 91      * @return the current draw face(s). | 91      * @return the current draw face(s). | 
| 92      */ | 92      */ | 
| 93     GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 93     GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } | 
| 94 | 94 | 
| 95 | 95 | 
| 96     /////////////////////////////////////////////////////////////////////////// | 96     /////////////////////////////////////////////////////////////////////////// | 
| 97 | 97 | 
| 98     bool readsFragPosition() const { return fReadsFragPosition; } | 98     bool readsFragPosition() const { return fReadsFragPosition; } | 
| 99 | 99 | 
| 100     const GrPipelineInfo& getInitBatchTracker() const { return fInitBT; } | 100     const GrPipelineInfo& infoForPrimitiveProcessor() const { | 
|  | 101         return fInfoForPrimitiveProcessor; | 
|  | 102     } | 
| 101 | 103 | 
| 102 private: | 104 private: | 
| 103     /** | 105     /** | 
| 104      * Alter the program desc and inputs (attribs and processors) based on the b
     lend optimization. | 106      * Alter the program desc and inputs (attribs and processors) based on the b
     lend optimization. | 
| 105      */ | 107      */ | 
| 106     void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, | 108     void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, | 
| 107                                         GrXferProcessor::OptFlags, | 109                                         GrXferProcessor::OptFlags, | 
| 108                                         const GrProcOptInfo& colorPOI, | 110                                         const GrProcOptInfo& colorPOI, | 
| 109                                         const GrProcOptInfo& coveragePOI, | 111                                         const GrProcOptInfo& coveragePOI, | 
| 110                                         int* firstColorStageIdx, | 112                                         int* firstColorStageIdx, | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 128     typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; | 130     typedef SkSTArray<8, GrPendingFragmentStage> FragmentStageArray; | 
| 129     typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 131     typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; | 
| 130     RenderTarget                        fRenderTarget; | 132     RenderTarget                        fRenderTarget; | 
| 131     GrScissorState                      fScissorState; | 133     GrScissorState                      fScissorState; | 
| 132     GrStencilSettings                   fStencilSettings; | 134     GrStencilSettings                   fStencilSettings; | 
| 133     GrPipelineBuilder::DrawFace         fDrawFace; | 135     GrPipelineBuilder::DrawFace         fDrawFace; | 
| 134     uint32_t                            fFlags; | 136     uint32_t                            fFlags; | 
| 135     ProgramXferProcessor                fXferProcessor; | 137     ProgramXferProcessor                fXferProcessor; | 
| 136     FragmentStageArray                  fFragmentStages; | 138     FragmentStageArray                  fFragmentStages; | 
| 137     bool                                fReadsFragPosition; | 139     bool                                fReadsFragPosition; | 
| 138     GrPipelineInfo                      fInitBT; | 140     GrPipelineInfo                      fInfoForPrimitiveProcessor; | 
| 139 | 141 | 
| 140     // This function is equivalent to the offset into fFragmentStages where cove
     rage stages begin. | 142     // This function is equivalent to the offset into fFragmentStages where cove
     rage stages begin. | 
| 141     int                                 fNumColorStages; | 143     int                                 fNumColorStages; | 
| 142 | 144 | 
| 143     GrProgramDesc fDesc; | 145     GrProgramDesc fDesc; | 
| 144 | 146 | 
| 145     typedef SkRefCnt INHERITED; | 147     typedef SkRefCnt INHERITED; | 
| 146 }; | 148 }; | 
| 147 | 149 | 
| 148 #endif | 150 #endif | 
| OLD | NEW | 
|---|