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

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

Issue 1471293003: Create a static instances of SrcOver XferProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix Build Created 5 years 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/effects/SkArithmeticMode_gpu.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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 * Gets whether the target is drawing clockwise, counterclockwise, 143 * Gets whether the target is drawing clockwise, counterclockwise,
144 * or both faces. 144 * or both faces.
145 * @return the current draw face(s). 145 * @return the current draw face(s).
146 */ 146 */
147 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; } 147 GrPipelineBuilder::DrawFace getDrawFace() const { return fDrawFace; }
148 148
149 149
150 /////////////////////////////////////////////////////////////////////////// 150 ///////////////////////////////////////////////////////////////////////////
151 151
152 bool readsFragPosition() const { return fReadsFragPosition; } 152 bool readsFragPosition() const { return fReadsFragPosition; }
153 bool ignoresCoverage() const { return fIgnoresCoverage; }
153 154
154 private: 155 private:
155 GrPipeline() { /** Initialized in factory function*/ } 156 GrPipeline() { /** Initialized in factory function*/ }
156 157
157 /** 158 /**
158 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization. 159 * Alter the program desc and inputs (attribs and processors) based on the b lend optimization.
159 */ 160 */
160 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds, 161 void adjustProgramFromOptimizations(const GrPipelineBuilder& ds,
161 GrXferProcessor::OptFlags, 162 GrXferProcessor::OptFlags,
162 const GrProcOptInfo& colorPOI, 163 const GrProcOptInfo& colorPOI,
(...skipping 19 matching lines...) Expand all
182 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray; 183 typedef SkAutoSTArray<8, PendingFragmentProcessor> FragmentProcessorArray;
183 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor; 184 typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
184 RenderTarget fRenderTarget; 185 RenderTarget fRenderTarget;
185 GrScissorState fScissorState; 186 GrScissorState fScissorState;
186 GrStencilSettings fStencilSettings; 187 GrStencilSettings fStencilSettings;
187 GrPipelineBuilder::DrawFace fDrawFace; 188 GrPipelineBuilder::DrawFace fDrawFace;
188 uint32_t fFlags; 189 uint32_t fFlags;
189 ProgramXferProcessor fXferProcessor; 190 ProgramXferProcessor fXferProcessor;
190 FragmentProcessorArray fFragmentProcessors; 191 FragmentProcessorArray fFragmentProcessors;
191 bool fReadsFragPosition; 192 bool fReadsFragPosition;
193 bool fIgnoresCoverage;
192 194
193 // This value is also the index in fFragmentProcessors where coverage proces sors begin. 195 // This value is also the index in fFragmentProcessors where coverage proces sors begin.
194 int fNumColorProcessors; 196 int fNumColorProcessors;
195 197
196 typedef SkRefCnt INHERITED; 198 typedef SkRefCnt INHERITED;
197 }; 199 };
198 200
199 #endif 201 #endif
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.cpp ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698