Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: src/gpu/GrPipeline.h

Issue 1734163002: Replace fWillReadFragmentPosition with a bitfield (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: BuiltInState -> RequiredFeatures Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrFragmentProcessor.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 /** 153 /**
154 * Gets whether the target is drawing clockwise, counterclockwise, 154 * Gets whether the target is drawing clockwise, counterclockwise,
155 * or both faces. 155 * or both faces.
156 * @return the current draw face(s). 156 * @return the current draw face(s).
157 */ 157 */
158 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } 158 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; }
159 159
160 160
161 /////////////////////////////////////////////////////////////////////////// 161 ///////////////////////////////////////////////////////////////////////////
162 162
163 bool readsFragPosition() const { return fReadsFragPosition; }
164 bool ignoresCoverage() const { return fIgnoresCoverage; } 163 bool ignoresCoverage() const { return fIgnoresCoverage; }
165 164
166 private: 165 private:
167 GrPipeline() { /** Initialized in factory function*/ } 166 GrPipeline() { /** Initialized in factory function*/ }
168 167
169 /** 168 /**
170 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization. 169 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization.
171 */ 170 */
172 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, 171 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds,
173 GrXferProcessor::OptFlags, 172 GrXferProcessor::OptFlags,
(...skipping 19 matching lines...) Expand all
193 typedef GrPendingProgramElement<const GrFragmentProcessor> PendingFragmentPr ocessor; 192 typedef GrPendingProgramElement<const GrFragmentProcessor> PendingFragmentPr ocessor;
194 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; 193 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray;
195 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; 194 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
196 RenderTarget fRenderTarget; 195 RenderTarget fRenderTarget;
197 GrScissorState fScissorState; 196 GrScissorState fScissorState;
198 GrStencilSettings fStencilSettings; 197 GrStencilSettings fStencilSettings;
199 GrPipelineBuilder::DrawFace fDrawFace; 198 GrPipelineBuilder::DrawFace fDrawFace;
200 uint32_t fFlags; 199 uint32_t fFlags;
201 ProgramXferProcessor fXferProcessor; 200 ProgramXferProcessor fXferProcessor;
202 FragmentProcessorArray fFragmentProcessors; 201 FragmentProcessorArray fFragmentProcessors;
203 bool fReadsFragPosition;
204 bool fIgnoresCoverage; 202 bool fIgnoresCoverage;
205 203
206 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 204 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
207 int fNumColorProcessors; 205 int fNumColorProcessors;
208 206
209 typedef SkRefCnt INHERITED; 207 typedef SkRefCnt INHERITED;
210 }; 208 };
211 209
212 #endif 210 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrFragmentProcessor.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698