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