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

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

Issue 2167193002: Revert of Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/GrPathRenderer.h ('k') | src/gpu/GrPipelineBuilder.h » ('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
11 #include "GrColor.h" 11 #include "GrColor.h"
12 #include "GrFragmentProcessor.h" 12 #include "GrFragmentProcessor.h"
13 #include "GrGpu.h" 13 #include "GrGpu.h"
14 #include "GrNonAtomicRef.h" 14 #include "GrNonAtomicRef.h"
15 #include "GrPendingProgramElement.h" 15 #include "GrPendingProgramElement.h"
16 #include "GrPipelineBuilder.h"
16 #include "GrPrimitiveProcessor.h" 17 #include "GrPrimitiveProcessor.h"
17 #include "GrProcOptInfo.h" 18 #include "GrProcOptInfo.h"
18 #include "GrProgramDesc.h" 19 #include "GrProgramDesc.h"
19 #include "GrStencilSettings.h" 20 #include "GrStencilSettings.h"
20 #include "GrTypesPriv.h" 21 #include "GrTypesPriv.h"
21 #include "SkMatrix.h" 22 #include "SkMatrix.h"
22 #include "SkRefCnt.h" 23 #include "SkRefCnt.h"
23 24
24 #include "effects/GrCoverageSetOpXP.h"
25 #include "effects/GrDisableColorXP.h"
26 #include "effects/GrPorterDuffXferProcessor.h"
27 #include "effects/GrSimpleTextureEffect.h"
28
29 class GrBatch; 25 class GrBatch;
30 class GrDrawContext; 26 class GrDrawContext;
31 class GrDeviceCoordTexture; 27 class GrDeviceCoordTexture;
32 class GrPipelineBuilder; 28 class GrPipelineBuilder;
33 29
34 struct GrBatchToXPOverrides { 30 struct GrBatchToXPOverrides {
35 GrBatchToXPOverrides() 31 GrBatchToXPOverrides()
36 : fUsePLSDstRead(false) {} 32 : fUsePLSDstRead(false) {}
37 33
38 bool fUsePLSDstRead; 34 bool fUsePLSDstRead;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 162
167 GrXferBarrierType xferBarrierType(const GrCaps& caps) const { 163 GrXferBarrierType xferBarrierType(const GrCaps& caps) const {
168 return this->getXferProcessor().xferBarrierType(fRenderTarget.get(), cap s); 164 return this->getXferProcessor().xferBarrierType(fRenderTarget.get(), cap s);
169 } 165 }
170 166
171 /** 167 /**
172 * Gets whether the target is drawing clockwise, counterclockwise, 168 * Gets whether the target is drawing clockwise, counterclockwise,
173 * or both faces. 169 * or both faces.
174 * @return the current draw face(s). 170 * @return the current draw face(s).
175 */ 171 */
176 GrDrawFace getDrawFace() const { return fDrawFace; } 172 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; }
177 173
178 174
179 /////////////////////////////////////////////////////////////////////////// 175 ///////////////////////////////////////////////////////////////////////////
180 176
181 bool ignoresCoverage() const { return fIgnoresCoverage; } 177 bool ignoresCoverage() const { return fIgnoresCoverage; }
182 178
183 private: 179 private:
184 GrPipeline() { /** Initialized in factory function*/ } 180 GrPipeline() { /** Initialized in factory function*/ }
185 181
186 /** 182 /**
(...skipping 22 matching lines...) Expand all
209 kHasStencilClip_Flag = 0x10 205 kHasStencilClip_Flag = 0x10
210 }; 206 };
211 207
212 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget; 208 typedef GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> RenderTarget;
213 typedef GrPendingProgramElement<const GrFragmentProcessor> PendingFragmentPr ocessor; 209 typedef GrPendingProgramElement<const GrFragmentProcessor> PendingFragmentPr ocessor;
214 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; 210 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray;
215 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; 211 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
216 RenderTarget fRenderTarget; 212 RenderTarget fRenderTarget;
217 GrScissorState fScissorState; 213 GrScissorState fScissorState;
218 GrStencilSettings fStencilSettings; 214 GrStencilSettings fStencilSettings;
219 GrDrawFace fDrawFace; 215 GrPipelineBuilder::DrawFace fDrawFace;
220 uint32_t fFlags; 216 uint32_t fFlags;
221 ProgramXferProcessor fXferProcessor; 217 ProgramXferProcessor fXferProcessor;
222 FragmentProcessorArray fFragmentProcessors; 218 FragmentProcessorArray fFragmentProcessors;
223 bool fIgnoresCoverage; 219 bool fIgnoresCoverage;
224 220
225 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 221 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
226 int fNumColorProcessors; 222 int fNumColorProcessors;
227 223
228 typedef SkRefCnt INHERITED; 224 typedef SkRefCnt INHERITED;
229 }; 225 };
230 226
231 #endif 227 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPathRenderer.h ('k') | src/gpu/GrPipelineBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698